• 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

Offering additional payment attempts

With full-screen redirection, the payment gateway can offer the "other payment attempt" button if the payment is declined (if the number of attempts is set to zero in the configuration).

The number of attempts is specified in your Merchant Back Office.

When iframe mode is enabled, this behavior is not available.

You can nevertheless propose a new attempt on your return page (URL defined in the vads_url_return field) and display the iframe containing the payment page again.

Sample code on the return page:

...
<div>
<p> Payment declined . Would you like to try again?</p>
<input type="button" value="New attempt" onclick="window.parent.refreshIframe();">	
<input type="button" value="Cancel" onclick="window.parent.removeIframe();">	
</div>
...

Source code of the refreshIframe() function to be added on the page containing the iframe:

function refreshIframe(){
var iframe = document.getElementById('nameFrame');
iframe.src = iframe.src;
}

© 2025 {'|'} All rights reserved to Sogecommerce
25.18-1.11