Conversation
supportHello and good evening, I am trying to change the text and redirect URL after a successful payment. Concerning this page: https://ps.w.org/stonehenge-em-mollie/assets/screenshot-3.png?rev=1922912 It’s when the mollie payment is successful and you get redirected with the “em_mollie_return=22” Where can I change this body content and button (style and text) displayed?
Hi @johnplant , You can pick the return page from the “Redirect Page” (or “Terugkeer-pagina” in Dutch) dropdown in the Mollie Settings Page. Events -> Payment Gateways -> Mollie -> Settings. Please note that the “em_mollie_return” part is required and automatically added to the chosen permalink. When your vistor has been redirected to the Mollie Payment page, the Events Manager Booking object to no longer global. The plugin “listens” for “em_mollie_return” to fetch the corresponding EM Booking from your database (in your example EM Booking ID 22) to display the correct payment status, because Mollie allows your visitor to cancel the payment. The line “The status of your payment is:” can be changed in the same settings page. The second line (“Booking successful. You will receive a confirmation email shortly”) is the booking feedback message in your Events Manager Settings. Events -> Settings -> Bookings -> Customize Feedback Messages -> Booking form feedback messages. To change the output after the correct booking and its payment status have been fetched, you can use the em_mollie_payment_feedback filter. function my_mollie_return( $result ) { // Do stuff. return $result; } add_filter( 'em_mollie_payment_feedback', 'my_mollie_return', 10, 1 );
Hi @johnplant , You can pick the return page from the “Redirect Page” (or “Terugkeer-pagina” in Dutch) dropdown in the Mollie Settings Page. Events -> Payment Gateways -> Mollie -> Settings. Please note that the “em_mollie_return” part is required and automatically added to the chosen permalink. When your vistor has been redirected to the Mollie Payment page, the Events Manager Booking object to no longer global. The plugin “listens” for “em_mollie_return” to fetch the corresponding EM Booking from your database (in your example EM Booking ID 22) to display the correct payment status, because Mollie allows your visitor to cancel the payment. The line “The status of your payment is:” can be changed in the same settings page. The second line (“Booking successful. You will receive a confirmation email shortly”) is the booking feedback message in your Events Manager Settings. Events -> Settings -> Bookings -> Customize Feedback Messages -> Booking form feedback messages. To change the output after the correct booking and its payment status have been fetched, you can use the em_mollie_payment_feedback filter. function my_mollie_return( $result ) { // Do stuff. return $result; } add_filter( 'em_mollie_payment_feedback', 'my_mollie_return', 10, 1 );