I've created a gateway with payment to an external payment provider (offsite).

When the payment is successful I need a redirect to complete the order and payment to: /commerce/payments/complete-payment

I tried: http://www.mysite.test/commerce/payments/complete-payment (returns 404).


I then tried: http://www.mysite.test/?action=/commerce/payments/complete-payment&commerceTransactionHash=[hash]. That seems to be working.

I have a gateway and a requestresponse class to handle what is needed.

What can I do to fix this issue?

From the documentation: https://craftcms.com/docs/commerce/4.x/extend/payment-gateway-types.html#off-site-payment and https://craftcms.com/docs/commerce/4.x/dev/controller-actions.html#get-payments-complete-payment


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.