Custom Payment Provider
Hi,
I built a custom payment provider and it seems to be working fine so far.
However, I was expecting the authorization code to show on the invoice widget (PaymentResponse.GatewayAuthCode). Should it be there? How do I get it to show to the user.
On a similar note, if the payment fails (PaymentResponse.IsSuccess = false), the checkout widget displays a "Modify your payment settings" link with no other information. I set the PaymentResponse.GatewayAdditionalResponse to the actual message, but how to I get it to show to the user? Should I be using some other properties?
Anyone?
Hi Pierre Alain,
I apologize for the delay in response.
To show the GatewayAuthCode on the invoice, go to Backend->Design->Widget Templates then look for Order Invoice template and paste the below snippet after Payment method.
<
div
class
=
"GateWay"
>
Gateway Auth Code:<%# string.Join("<
br
/>", ((IList<
OrderPayment
>)Eval("Payments")).Where(op => op.SuccessfulPayment).Select(op => op.GatewayAuthCode)) %>
</
div
>
Works great. Thank you.