Delayed Payment Instructions element
Learn how to create a Delayed Payment Instructions element to generate a template containing instructions for delayed payment.
You can use the Delayed Payment Instructions element to generate a template that contains the instructions that explain how to complete payment for delayed payment types such as:
Konbini–where the shopper must go to a convenience store to pay.
Wire Transfer–where the shopper has to go to their bank to wire money to the payment partner's bank.
Access the Delayed Payment Instructions demo to view the example output generated by the element. You can style and arrange this output using custom CSS in your application.
For details on using the element in a purchase flow, refer to Handling pending payment orders on the Processing orders page.
Creating a Delayed Payment Instructions element
To create a Delayed Payment Instructions element, use the createElement
function exposed through the DigitalRiver Object. You can localize the content by using the localization functionality of DigitalRiver.js.
The Delayed Payment Instructions element also requires an options
object. The options
object requires the following attributes:
sourceId
The source ID.
sourceClientSecret
The client secret for the source.
Delayed Payment Instructions element functions
delayedPaymentInstructions.mount();
Call this function to place the created Delayed Payment Instructions element on your page.
Delayed Payment Instructions element events
delayedPaymentInstructions.on('event', handler);
Use this function to listen to events that you use to build and enhance your purchase flow.
The created element is loaded.
Ready
A Ready event triggers when the Delayed Payment Instructions element has loaded.
elementType
delayedPaymentInstructions
Last updated