• France
status page
Demo shops
assistance
FAQContact support
Search
Categories
Tags
Europe (English)
France
Spain
Europe (English)
India
Homepage
Use cases
Create a payment
Create an installment payment
Create a multi-card (split) payment
Create a payment by Alias (Token)
Create a payment link
Create a recurring payment
Manage subscriptions
Manage your transactions (refund, cancel...)
Analyze your reports
API docs
Embedded Form
REST API
Hosted payment
Mobile payment
File exchange
SDD mandates by REST API
Snippets
Payment methods
Plugins
Marketplace
Guides
Merchant Back Office
Back Office Expert
Functional guides

Catching the end of payment

For integrations including return within the same iframe (FORM_TARGET=_self), it is required to close the iframe and display the payment result in the parent frame.

To do this, you can declare the following JS function in the parent frame:

window.removeIframe = function() {
var iframe = document.querySelector('iframe[name=payment]');
if (iframe) {
iframe.remove();
}
};

Insert the following code in your return pages to call the function:

<script>
parent.removeIframe();
</script>

Jobs
Legal
GDPR
25.18-1.11