mollie / laravel-mollie

Mollie API client wrapper for Laravel & Mollie Connect provider for Laravel Socialite
https://www.mollie.com/
MIT License
322 stars 62 forks source link

Change href from "Previous website" link #178

Closed Thedonsolo closed 3 years ago

Thedonsolo commented 3 years ago

Expected Behavior

When the user wants to cancel the payment by clicking "Previous website" link, he should be going to a specific page.

Current Behavior

At the moment I don't see any possibility to manipulate the "Previous website" link.

Possible Solution

Pass the url to the Mollie::api()->payments->create method.

Context

For each payment the page the user arrives on after cancelling will be different on our side.

Your Environment

sandervanhooft commented 3 years ago

Hi @Thedonsolo,

For all scenarios that Mollie redirects the user back to your site, it will use the provided redirectUrl.

With Laravel implementations I typically use a RedirectFromMollieController and route for this redirectUrl.

In this controller you can check the payment status before redirecting internally / showing the right view.