Testing redirect payment methods

Understand how to test redirect payment methods

The following are the payment methods with a redirect authentication flow that Digital River currently supports in our testing environment: Afterpay, Alipay (domestic), Alipay+ (cross-border), Amazon Pay, Bancontact, BLIK, Boleto, CCAvenue, Clearpay, iDEAL, Klarna, Online Banking (FPX), Online Banking (IBP), Online Banking (Korea Bank Transfer), PayCo, PayPal, PayPal Billing, PayPal Credit, PayPal Py in 3, PayPal Pay in 4, PayPal RatenZahlung, SEPA Direct Debit, and TreviPay.

Success scenarios

Use the create source method to provide success scenario test data for the redirect payment sources. Once you've done this, you should receive a Source in a pending_redirect state.

You'll then be directed to our generic authorization page that contains accept and reject options. Follow the redirect and select one of the following options:

OptionExpected result

Approve

The Source moves to a chargeable state

Decline

The Source remains in a pending_redirect state.

Error scenarios

First, select one of the following payment methods for redirect sources. Then, identify the error scenario you would like to test against. Finally, when creating a source, the lastName parameter in the Owner object to the value you expect to trigger the scenario.

This tab's testing information applies to PayPal, PayPal Billing Agreement, and PayPal Credit.

ScenarioDescription

lastName parameter

Expected result

SourceCreationFail

Source creation fails. The Source state is failed .

ChargeCreationFail

Source creation is successful but Charge creation fails. The Charge state is failed .

RefundFail

Source and Charge creation is successful. Any refunds against the charge fail. Refund state is failed .

Last updated