Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have a CustomZeroValuePaymentProvider which inherits from ZeroValuePaymentProvider.
I've noticed since upgrading to v1.5.2, all orders using a gift card, now makes this payment provider error.
Looking at what returns from the ProcessCallback method, the amount authorized isn't 0.00 as expected. It's the total value of the order. Manually intervening and setting it to 0.00 stops the order from erroring.
Is this a bug?
This does look like it's a bug as we seem to have forgotten to update this post 1.4.0 when we introduced the TransactionAmount property.
Given you are overriding the default ZaroValuePaymentProvider you can probably override the ProcessCallback method with the following implementation as a workaround:
public override CallbackResult ProcessCallback(OrderReadOnly order, HttpRequestBase request, ZeroValuePaymentProviderSettings settings)
return new CallbackResult
TransactionInfo = new TransactionInfo
AmountAuthorized = order.TransactionAmount.Value,
TransactionFee = 0m,
TransactionId = Guid.NewGuid().ToString("N"),
PaymentStatus = PaymentStatus.Captured
I'll report this on the issue tracker though and get an update pushed out soon.
Thanks for reporting this 👍
UPDATE: Issue has been raised here https://github.com/vendrhub/vendr/issues/281
Just to let you know, I released Vendr 1.5.2 yesterday with this fix in so this should all be sorted now 👍
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted