circuitnederland / registrationform

0 stars 0 forks source link

In the redirect screen from Mollie (registration_finished), show the e-mail address that should have received the validationmail #19

Closed sandrab closed 6 years ago

sandrab commented 6 years ago

(From GDrive document point 13). After the user has returned from Mollie (whether having paid there or not), registration_finished.php is shown, because this is passed to the Mollie createPayment as the redirect URL. In registration_finished.php a general message is shown, telling the user that he has received an e-mail. We should add the e-mail address this e-mail has been sent to, to make it more user friendly.

The message is in registration_strings.php in 'payment.done.explain'. This could be extended with a %s parameter and redirect_finished.php using this string could then use sprintf() to substitute this with the email address from the request parameter. In registration_pay.php we should add the email to the redirect URL as a request parameter.

sandrab commented 6 years ago

Note: the mollie payment containing the redirectUrl is no longer created in the PHP but in a Cyclos script, so instead of adding the email as a request parameter in registration_pay.php, this was done in the mollie library script.