• France
status page
demonstrations
assistance
FAQContact support
Search
Categories
Tags
English
French
English
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
Snippets
Payment methods
Plugins
Guides
Merchant Back Office
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>

© 2025 {'|'} All rights reserved to Scellius
25.20-1.11