Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • hansdesmedt 10 posts 31 karma points
    Nov 13, 2012 @ 10:30
    hansdesmedt
    0

    Need information what paymentmethod used in Ogone.

    hi,

     

    With Ogone you can pay with different kind of payment methods like: visa, bank transfer,...  When this provider comes back to uCommerce I would like to know what they choose.

    Is there a way I can know this with current implementation?  or do I need to make custom payment implementation for this?

     

    Thanks,

    Hans

  • Søren Spelling Lund 1797 posts 2786 karma points
    Nov 13, 2012 @ 16:24
    Søren Spelling Lund
    0

    It might be passed back with the callback from Ogone (I don't know for sure, but it's pretty common). You can inherit the existing Ogone provider and override the ProcessPaymentRequest method, which is invoked upon callback.

    You provider would look something along these lines:

    public class CustomOgonePaymentMethodService : OgonePaymentMethodService
    {
    public override void ProcessCallback(Payment payment)
    {
    // Grab the value from request
    string cardType = HttpContext.Current.Request["whatever_posted_value_contains_card_type"];

    // Put it on payment
    payment["card_type"] = cardType;

    // Proceed with default payment processing
    base.ProcessCallback(payment);
    }
    }

    Register the new payment provider in web.config (for uCommerce 2) or in Payments.config (for uCommerce 3).

  • hansdesmedt 10 posts 31 karma points
    Nov 13, 2012 @ 17:13
    hansdesmedt
    0

    Very nice! Thanks for the tip!

Please Sign in or register to post replies

Write your reply to:

Draft