iDEAL element
Learn how to use the iDEAL element.
You can create an iDEAL element that will automatically get a user's agreement and IBAN number for single-use and recurring transactions.
Creating an iDEAL element
To create an iDEAL element, use the createElement
function exposed through the DigitalRiver Object. This object follows the same pattern and allows for the same custom classes and styles as other elements.
The iDEAL element also requires an additional ideal
object which accepts:
Attribute | Description | Required/Optional |
---|---|---|
| The Payment Session ID | Required |
iDEAL element functions
ideal.mount();
Call this function to place the created iDEAL element on your page.
If your session is not recurring, nothing will display and the payment source created will not be able to be used for subscription usage.
If your session is recurring, the element will display a checkbox that will allow the user to agree to authorize recurring subscription payments.
If the user does not check the box, the payment source created will not be able to be used for subscription usage.
If the user does check the box, they will be required to enter their IBAN number and the payment source created will be able to be used for subscription usage.
ideal.unmount();
Call this function to remove the iDEAL element from your page. The element may be re-added to your page by calling mount()
.
ideal.destroy();
Call this function to remove the iDEAL element from your page as well as remove its functionality. You cannot re-add the destroyed element to your page via mount()
.
iDEAL element events - ideal.on('event', handler);
Use this functionality to monitor events that can be used to build and enhance your purchase flow.
Event | Triggered When |
---|---|
| The created element is loaded. |
| The element's state has changed. |
Ready
The Ready event triggers when the iDEAL Element has loaded.
Change
A change event triggers when the iDEAL element's state has changed. When using this element, you will only receive this event when the customer agrees to recurring billing and has entered an IBAN number.
Response object
Key | Value Description |
---|---|
| The element type |
| An iban object containing the status of the IBAN field when it is present. |
IBAN Object
Key | Value Description |
---|---|
| Whether the IBAN field is in a complete state. |
| Whether the IBAN field is empty. |
| An error object (if applicable). |
Response object - IBAN complete
Response object - IBAN error
In this flow, you can use the createSource() method to create a source using the iDEAL element.
Last updated