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.
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:
Zero Value payment with Gift Card
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?
Good spot.
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:
I'll report this on the issue tracker though and get an update pushed out soon.
Thanks for reporting this 👍
Matt
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...