Copied to clipboard

Flag this post as spam?

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


  • Rasmus Fjord 675 posts 1566 karma points c-trib
    Apr 07, 2021 @ 20:37
    Rasmus Fjord
    0

    Build a payment provider for Bambora Checkout for TC

    Hey :)

    So im building a Bambora Checkout payment provider for the good old TC solution because I have a customer running on it still.

    I took the PaymentProvder solution from github for TC as base and looked at the Bambora Checkout for Vendr since alot of it is similar. Im quite far actually, I can produce a payment window and all seems fine. Only think not working proper is my callback.

    So it calls back to this url: https://local.customerdomain.dk/base/TC/PaymentContinue/1/Bambora%20Checkout/16219726-3c08-47ba-8325-3387e2fb7383/a5d122e44dd4b34c88a10b6db9e9094774ccb5ad7761c2e60d48138356f53d25.aspx?txnid=226749633305325568&orderid=CART834285&reference=608193574816&amount=97300&currency=DKK&date=20210407&time=2009&feeid=586420&txnfee=0&paymenttype=4&cardno=415421XXXXXX0001&eci=5&issuercountry=DNK&hash=4b89fb85629e818a99da5598f7de7984

    The Domain is local so the actual callback from Bambora will not work since its local but if i take the url and just run it locally, it just throws me a 302 and sends me to my continue/finish page. The method "Callback" in my provider is never hit, so the order is never registered as finished. Any hints on how this can be?

    I will of course share this when its done.

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Apr 08, 2021 @ 08:17
    Matt Brailsford
    0

    Hey Rasmus,

    It looks like you are passing the continue URL to the payment gateway, rather than the callback URL. The continue URL is meant to handle being redirected back to the site, so it's job is to direct you to the confirmation page. The callback URL though is the one that processes the webhook callback.

    You can tell it's the wrong URL as it has PaymentContinue in it, rather than PaymentCallback which would be present in the callback URL.

    Matt

  • Rasmus Fjord 675 posts 1566 karma points c-trib
    Apr 08, 2021 @ 08:24
    Rasmus Fjord
    1

    AH,

    Awesome Mate, I will fix that and try it again!

  • Rasmus Fjord 675 posts 1566 karma points c-trib
    Apr 08, 2021 @ 09:16
    Rasmus Fjord
    0

    And it worked! so i just needed to find the right url and fix a few things then it worked. Will just test capture/cancel and all that and I think its releaseble for others to use.

    Will just throw it on github, maybe you can link to it from the paymentprovider TC project.

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Apr 08, 2021 @ 09:21
    Matt Brailsford
    0

    Hey Rasmus,

    Awesome!

    Yea, just drop it on GitHub and post a link here. If anyone comes searching then they can find the source from here

    Nice work back porting it 👍

    Matt

  • Rasmus Fjord 675 posts 1566 karma points c-trib
    Apr 08, 2021 @ 10:17
    Rasmus Fjord
    0

    Hey Matt,

    Its been tested and its done :)

    Thanks, it was easy with such great code to go from.

    https://github.com/rasmusfjord/Rocketjump.PaymentProviders.BamboraCheckout

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies