[Display view after donation form submission] should be possible #6221
Replies: 4 comments 1 reply
-
Any help on this please? |
Beta Was this translation helpful? Give feedback.
-
@BastienU can you help to understand the issue. What do you want to see after return (from donation form or bank payment page), receipt? FYI, iframe sends a message to parent page from iframe which informs parent page that iframe content has been loaded and loader can be removed: @BastienU I will be happy to help if you have any other questions. |
Beta Was this translation helpful? Give feedback.
-
Hi, Thanks a lot for this information.
After submission of the donation form I need to display a button. Because I don't have credit card fields on this donation form. The credit card field are displayed after, on the bank page. And the button I have to display is redirection the user to the bank page. I don't understand how to use this Sorry for all those questions. Thanks again for your help. |
Beta Was this translation helpful? Give feedback.
-
@BastienU You have to tell the parent page that content in the iframe has been loaded. We do not handle this for the intermediate page. Load this code with credit card fields and let me know whether it works for you: <script>
window.addEventListener('load', (event) => {
window.parentIFrame.sendMessage( { action: 'giveEmbedFormContentLoaded' } );
});
</script> |
Beta Was this translation helpful? Give feedback.
-
Sorry in advance if this is not a bug, but I did not find the feature.
Details
I'm developing a new gateway for one of my customer and after the user form submission, I need to generate some data (based on form values), and then display another form (with a button). The user needs to click on this button (the button will be clicked automatically with javascript) and the form submission will send the user on the bank payment page, where he will be able to type its credit card number.
This is a functionnality quite common (at least here in France) but I did not find, after some search, how to display this. I'm using the new GiveWP form (Classic, and not Legacy), so with iframe. Before iframes, the previous code (by displaying a new page) was working correctly. Here is the new code, inspired by your documentation.
I tried to include the view :
include_once plugin_dir_path( __FILE__ ) . 'views/redirection-form.php';
The view:
It appears that the include seem to be functionnal, but the loader is not undisplayed after return.
I really do not understand what's missing.
Thanks for your help or fix.
Beta Was this translation helpful? Give feedback.
All reactions