0

I'm using Barion payment gateway, and they don't have module for Drupal 8, do I decided to make my own. I was able to redirect users offsite so they could make payment, and the payment is visible, but I am not able to return them to the website. Before redirecting, I can set a page on what should payment gateway go to after it's finished, but if I set it for something like

checkout/' . $order_id . '/complete'

It redirects right back to the payment page. I tried to implement the

onReturn(OrderInterface $order, Request $request) {}

but the function is not called. I followed instructions from here https://docs.drupalcommerce.org/commerce2/developer-guide/payments/create-payment-gateway/off-site-redirect-gateways but when I come to 'Return from payment provider' part, it simply won't trigger that function.

Do you know what should payment gateway return to?

Any assistance is helpful. Thank you

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.