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.
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?
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.
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.
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¤cy=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.
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 thanPaymentCallback
which would be present in the callback URL.Matt
AH,
Awesome Mate, I will fix that and try it again!
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.
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
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
is working on a reply...