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:

	<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();">	

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;