Copied to clipboard

Flag this post as spam?

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


  • Brendan Rice 538 posts 1101 karma points
    Dec 03, 2012 @ 01:14
    Brendan Rice
    0

    Payment Provider Callback

    I am implementing a custom payment provider for PaymentSense and I have the order going to payment sense and this hooked up by having my Payment provider inherit from APaymentProvider class.

    There are 2 things that happen with PaymentSense after the payment details have been collected:

    1. The user is redirected back to the shopping cart checkout process

    2. Once confirmation of the payment is received from credit card company a message is sent to the website (my website) to confirm the state of the payment

    I am little unsure how these 2 things should be handled. I know that PaymentSense accepts the following parameters as part of posting the order to it. I just can't figure out how to hook these in with the TeaCommerce PaymentProvider model. There is a ProcessCallback method but I am unsure at what point it gets called or what the URL is that triggers it.

    ServerResultURL

    The merchant’s external server URL used for SERVER result delivery method

    CallbackURL

    After the payment has been processed on the PaymentSense payment form this is the URL that our system will return the Transaction results back to. Please See the Section “Creating the outbound HashDigest”. If this fails the merchant will receive an email with the subject

    “NOTIFICATION OF HOSTED PAYMENT ERROR”

     

    Any help with this would be really appreciated. Thanks in advance...

     

     

     

  • Anders Burla 2560 posts 8256 karma points
    Dec 03, 2012 @ 08:35
    Anders Burla
    0

    Hi Brendan

    You should pass the teaCommerceContinueUrl as the "ServerResultUrl" parameter. This is the url Tea Commerce to do the continue steps correct.

    And you should use teaCommerceCallbackUrl as the "CallbackURL". This is a server to server call where the ProcessCallback method of your payment provider is called and you should validate the info and then return some info for Tea Commerce to finalize the order correctly.

    I think this is the right way - I dont know the PaymentSense form post API - but the parameter names indicate that this is the way to do it :)

    Kind regards
    Anders

Please Sign in or register to post replies

Write your reply to:

Draft