+1-888-365-2779
Try Now
More in this section

Forums / Ecommerce / Custom Payment Provider

Custom Payment Provider

4 posts, 1 answered
  1. Pierre Alain
    Pierre Alain avatar
    38 posts
    Registered:
    10 Jun 2008
    06 Apr 2012
    Link to this post
    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?
  2. Pierre Alain
    Pierre Alain avatar
    38 posts
    Registered:
    10 Jun 2008
    27 Apr 2012
    Link to this post
    Anyone?
  3. Venkata Koppaka
    Venkata Koppaka avatar
    67 posts
    Registered:
    24 Sep 2012
    27 Apr 2012
    Link to this post
    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>

    For showing more detail on a failed payment, please set GatewayResponse field. This text gets shown to the user in case of failed transaction.

    Regards,
    Venkata Koppaka
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
    Answered
  4. Pierre Alain
    Pierre Alain avatar
    38 posts
    Registered:
    10 Jun 2008
    30 Apr 2012
    Link to this post
    Works great. Thank you.
4 posts, 1 answered