554114
4
Zoom out
Zoom in
Previous page
1/5
Next page
How to Implement
Redirection-based payment methods, such as PayPal and iDEAL, cannot be framed in. The rationale is that
these payment methods are well-known and trusted consumer brands, which don't want to be framed in at
another customer-facing site. For Adyen as a business-to-business brand, this is much less an issue, if the right
security practices are followed.
The goal for the merchant is to keep maximising conversion, even with external payment pages. The following
section explains how more control over the payment flow is realised with external payment pages.
Using JQuery with External Payment Pages
JQuery (http://www.jquery.org) offers an easy way to obtain a little more control over the external pages of a
redirection-based payment method. This is done by replacingthe actions for submit buttons for redirection-
based payment methods. In the following example, we show how this can be done (this is code that you can
insert into your skin):
<script type="text/javascript">
$(".paySubmitpaypal, .idealButton, .paySubmitideal").click(function() {
var paymentWindowReference = window.open('', 'paymentWindow',
'location=no, toolbar=no, directories=no, resizable=yes, status=no,
menubar=no, scrollbars=yes, width=1100, height=652');
paymentWindowReference.focus();
$("#pageform").attr("target", "paymentWindow");
window.location.href = "https://www.merchanturl.com/adyen/extsite";
});
</script>
First, the function defines what happens if a customer clicks on of the buttons for PayPal or iDEAL. A new
window is opened called 'paymentWindow', which shall contain the redirection-based payment screens. This
window is stripped from toolbars and scrollbars.
This example shows furthermore how the target of the form pageform is set to our newly opened window.
This means that the PayPal or iDEAL banking page will be opened in the new window named
paymentWindow.
At the same time when opening this payment page, the contents of the iFrame are replaced by
/adyen/extsite which can hold a message like 'You have been redirected to an external payment site' and
possible further instructions.
In this case, the result url will also be displayed in the paymentWindow.
Dealing with 3D-Secure
If your account uses 3D Secure then you can change a setting in the Adyen backoffice to make sure that the 3D
Secure window is displayed in the iFrame. The setting to use is:
Skins > [skin code] > Skin Options > Use Inline frame for VbV and MSC 3-D Secure interaction
Turn this option on when using iFrames.
Please note that individual issuing banks might prevent their 3D-Secure pages from being framed in.
4 Copyright © Adyen B.V. 2011
4


Need help? Post your question in this forum.

Forumrules


Report abuse

Libble takes abuse of its services very seriously. We're committed to dealing with such abuse according to the laws in your country of residence. When you submit a report, we'll investigate it and take the appropriate action. We'll get back to you only if we require additional details or have more information to share.

Product:

For example, Anti-Semitic content, racist content, or material that could result in a violent physical act.

For example, a credit card number, a personal identification number, or an unlisted home address. Note that email addresses and full names are not considered private information.

Forumrules

To achieve meaningful questions, we apply the following rules:

Register

Register getting emails for Adyen iFrame at:


You will receive an email to register for one or both of the options.


Get your user manual by e-mail

Enter your email address to receive the manual of Adyen iFrame in the language / languages: English as an attachment in your email.

The manual is 0,49 mb in size.

 

You will receive the manual in your email within minutes. If you have not received an email, then probably have entered the wrong email address or your mailbox is too full. In addition, it may be that your ISP may have a maximum size for emails to receive.

The manual is sent by email. Check your email

If you have not received an email with the manual within fifteen minutes, it may be that you have a entered a wrong email address or that your ISP has set a maximum size to receive email that is smaller than the size of the manual.

The email address you have provided is not correct.

Please check the email address and correct it.

Your question is posted on this page

Would you like to receive an email when new answers and questions are posted? Please enter your email address.



Info