If customers opt to fund a transaction with a whose resulting has a of receiver, such as or , they must be given instructions on how to push the funds to the payment provider.
This page applies only to those who build their checkout experience using the Direct Integrations approach. If you implement a low-code checkout option, Digital River displays the delayed payment instructions to customers.
To provide customers with these instructions, first . If you get back a 201 Created and is pending_payment, then check the value of .
For details on other state values and how to handle them, refer to .
delayedPaymentInstructions.on('ready', function(event) {
//delayed payment instructions element is ready
});
Once the instructions are loaded in the designated container, they usually contain the number of days that customers have to push payment.
<div id="delayed-payment-container">
<div id="delayedpaymentinstructions-c4906e5d-bcc4-482d-aa23-24775f73f035" class="DR-delayed-payment-instructions-container">
<p>Thank you for your order. Please pay at a local branch of the store that you selected.<br><br>The payment will be processed by Digital River, K.K. on our behalf.<br><br>Your order will not be available or shipped until payment has been received and processed.</p>
<p id="DR-konbiniAmountAndReferenceId">
<strong>Amount:</strong> 30.00 USD
<br>
<strong>Reference Number:</strong> 100001
<br>
<strong>Store:</strong> セブン‐イレブン
<br>
</p><p>Please verify your order, and complete payment within 7 days after your order date. <br><br>As soon as the payment is received and confirmed, the product will be made available or shipped. <br><br></p>
<p></p>
</div>
</div>
If is show_payment_instructions, then retrieve sourceId and sourceClientSecret from nextAction.data and use them to configure the method.
If an state is pending_payment and action is redirect, refer to .
Next call to display the element on your order confirmation page. Alternatively, you may want to include a link on the order confirmation page that redirects customers to another page and displays the element there.
When executes, the instructions are displayed to customers.
If customers follow the instructions and payment is successfully authorized, you'll need to handle the with a of . Otherwise, if they don't make payment within the allotted time, make sure you're set up to handle .