Cancel url for payment providers

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
snicto
Posts: 37
Joined: 12 Oct 2022, 14:00

Cancel url for payment providers

Post by snicto » 20 Oct 2022, 15:22

Aimeos: 2022.10
PHP: 8.1

My payment provider requires a cancel URL, which is a link where customers are redirected if they cancel the selected payment method. I failed to find such a parameter "payment.url-cancel" returns null. I need them to be redirected back to the order, so they can choose a different option of payment.

User avatar
aimeos
Administrator
Posts: 8616
Joined: 01 Jan 1970, 00:00

Re: Cancel url for payment providers

Post by aimeos » 20 Oct 2022, 15:31

It's the same as "payment.url-success" because the payment gateway must redirect to the order confirmation page so the Aimeos payment service provider can set the status of the order to "canceled".
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

noola
Posts: 2
Joined: 06 Aug 2023, 22:57

Re: Cancel url for payment providers

Post by noola » 07 Aug 2023, 00:43

Im having same issue...for my case the payment provider requires cancel, success, notification urls...could you give an example of a url i can give to my payment provider?

User avatar
aimeos
Administrator
Posts: 8616
Joined: 01 Jan 1970, 00:00

Re: Cancel url for payment providers

Post by aimeos » 08 Aug 2023, 07:40

Success and cancel URLs are:

Code: Select all

https://laravel.demo.aimeos.org/shop/confirm/<payment service code>
e.g.:

Code: Select all

https://laravel.demo.aimeos.org/shop/confirm/demo-invoice
Notify URL are for example:

Code: Select all

https://laravel.demo.aimeos.org/update
The URLs depends on your route prefixes, etc.
Please have a look at the output of:

Code: Select all

php artisan route:list
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

noola
Posts: 2
Joined: 06 Aug 2023, 22:57

Re: Cancel url for payment providers

Post by noola » 15 Aug 2023, 00:11

Thank you so much admin

Post Reply