Copied to clipboard

Flag this post as spam?

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

  • Aaron Drinkwater 3 posts 72 karma points
    May 21, 2017 @ 16:19
    Aaron Drinkwater

    I have a website which currently has the PayPal payment option, but I'd like to modify this to use PayPal Express instead so that the customer never leaves the website during the checkout flow.

    PayPal Express handles the entire payment process through JavaScript and triggers a callback function which would allow me to redirect to the Payment Complete page once the payment has been authorized and executed.

    As everything is handled through JavaScript, TeaCommerce doesn't handle any callbacks from PayPal which means it can't know that the order has been finalized.

    Is there a way I can manually finalize the order in TeaCommerce, or is there a better way to go about this?

  • Anders Burla Johansen 2560 posts 8256 karma points
    May 30, 2017 @ 08:04
    Anders Burla Johansen

    Hi Aaron

    The best way to make support for a payment gateway in Tea Commerce is to make a Payment Provider. That is where you can do server secure callbacks/finalize and handle all that logic. You would start by making the GenerateHtmlForm method and then work you way through to make a callback and do the security check there and then TC will finalize it.

    Let me know if you hit any walls.

    Kind regards


Please Sign in or register to post replies

Write your reply to: