Closed Rainieren closed 4 years ago
How do you access the webpage/application. Is this via localhost or the ngrok url?
@robindirksen1 I use Valet and did valet share
and used the ngrok url to navigate and make payment etc.
What is your APP_URL
in .env?
I would like to reopen this issue and ask the following question.
@robindirksen1 I looked at the APP_URL
in the .env
folder and indeed it said http://localhost
I changed it to my current site URL and mollie redirects successfully to that url. But I want the user to be redirected to a url something like this https://www.rainierlaan.test/payment-success
or something along those lines. I does not make sense to change the APP_URL
in the .env
file to a payment confirmation page. Can it be set somewhere else?
You can configure what the redirect_url is in the configuration (see: https://github.com/laravel/cashier-mollie/blob/develop/config/cashier.php#L60) but that's also the url when the user didn't complete the payment.
If you redirect the user to a general page (for example: /check-payment
) you'll have the controle to redirect them to the correct page (payment-success
or payment-failed
) based on the payment status.
Can this be a solutions for your case?
I see. Thank you this is what I was looking for!
Currently when a payment is made the user redirects to https://localhost. This can also be seen here
Is there a way to customize this URL? I don't know how to redirect the user to a payment confirmation page? I tried adding
'redirectUrl'
tocashier_plans.php
but that does not seem to do anything.