Skip to main content
You can add Riverty to your existing integration. The following instructions show only what you must add to your integration specifically for Riverty. If an instruction on this page corresponds with a step in the main integration guide, it includes a link to that corresponding step of the main integration guide. What you must add to your integration depends on the server-side flow that your integration uses:

Sessions flow Component

Before-You-Begin

Requirements

Activating Riverty defaults the pricing to our standard pricing. Adyen offers Enterprise pricing for merchants with sufficient volume. Before activating Riverty, contact your account manager to verify if you are eligible.

Add-Parameters-Sessions-Request

Add additional parameters to your /sessions request

When you create a payment session, add the following parameters: Example /sessions request

Import

Import Riverty

When you import Adyen Web, include Riverty. Import

Add-Configuration

Add additional configuration for Riverty

You do not need to add any configuration parameters for Riverty.

Initialize

Initialize the Component for Riverty

To initialize Riverty, use the Riverty class. Initialize the Component

Capture

Capture the payment

After the goods have been sent, you also need to capture the payment. All Riverty payments must be manually captured, even if you have enabled automatic capture for other payment methods. Capturing the payment is what triggers the invoice to be sent to the shopper and starts the payment schedule. If you do not manually capture the payment within 30 days, the authorization will expire. If you require a longer period before authorizations expire, contact our Support Team. They will inform you when Riverty has updated the expiration period for you.

Partial captures

To partially capture a Riverty payment, specify in your /payments/{paymentPspReference}/captures request: Only specify the items that you are capturing. Any unclaimed amount that is left after partially capturing a payment should be manually cancelled. To set up multiple partial captures, contact our Support Team. Multiple partial captures will create a new invoice for each capture. The following example shows how to make a partial capture request if the shopper only kept item #1 of the order. Example /captures request
The following response is returned: Example /captures response
Manually cancel any amount that remains after partially capturing a payment. If a part of the authorized amount has been captured, simply sending an empty /payments/{paymentPspReference}/cancels request releases the remaining balance (without having to specify the lineItems remaining that need to be canceled). Example /cancel request
To set up multiple partial captures, contact our Support Team. Multiple partial captures will create a new invoice for each capture. 

Refunds-Cancellations

Refunds and cancellations

If you have not captured a Riverty payment, you can cancel it. If you have captured the payment and you want to return the funds to the shopper, you need to refund it. As with captures, you don’t need to specify lineItems in the refund request if you are doing a full refund. To partially refund a Riverty payment, specify in your /payments/{paymentPspReference}/refunds request: Only specify the items that you are refunding the money for. The following example shows how to make a partial refund for item #1 of the above order. Example refund request for Riverty
The following response is returned: Example refund response for Riverty
The pspReference in the response is the reference of the refund itself.

Test and go live

Riverty provides detailed error codes, recommendations on how to test some of the most common scenarios as well as a comprehensive list of market specific test data.

Go-live requirements

Riverty requires you to display Terms & Conditions as well as data protection guidelines in your checkout for the shopper to approve before making the payment. See Riverty’s documentation for details.

Advanced flow Component

Requirements

Activating Riverty defaults the pricing to our standard pricing. Adyen offers Enterprise pricing for merchants with sufficient volume. Before activating Riverty, contact your account manager to verify if you are eligible.

How it works

The following is the process to make a Riverty payment.
  1. Collect your shopper’s details and specify these in your /payments request.
  2. When you make the /payments request, include the following information.
    • The shopper’s details that you collected.
    • The details of the items, in the lineItems object.
    • Optional: if you use profile tracking from Riverty to calculate the profile tracking ID, include deviceFingerprint.
  3. Capture the payment after the goods are sent. This triggers the invoice that the merchant sends to the shopper.

Profile tracking

Profile tracking is Riverty’s technology for risk evaluation of shoppers. For payments in the following countries, we recommend that you use it to improve acceptance.
  • Austria
  • Germany
  • Switzerland
You must get the profileTrackingShopId from Riverty’s implementation support team before implementing profile tracking. To integrate with profile tracking, you can implement the script from Riverty. It calculates a profile tracking ID for each shopper. The script collects data about the shopper’s device (profile tracking ID) to predict scripted attacks.
  1. When the shopper goes to the checkout page, run the script. It outputs a profile tracking ID.
  2. Encrypt the profile tracking ID in a string.
  3. When you make the /payments request, include the encrypted string in deviceFingerprint. We recommend you always include this.

Get-Payment-Method

Get Riverty as an available payment method

When you make the /paymentMethods to get available payment methods, specify the following so that Riverty is included in the response. Example request for available payment methods
The response includes paymentMethod.type: riverty. Example response with Riverty available

Import

Import Riverty

When you import Adyen Web, include Riverty. Import

Add-Configuration

Add additional configuration for Riverty

You do not need to add any configuration parameters for Riverty.

Initialize

Initialize the Component for Riverty

To initialize Riverty, use the Riverty class. Initialize the Component

Add-Parameters-Payments-Request

Add additional parameters to your /payments request

When you make a payment, add the following parameters to the /payments request: Example payment request for Riverty
The response includes action.type: redirect. Example response with a redirect action

Capture

Capture the payment

After the goods have been sent, you also need to capture the payment. All Riverty payments must be manually captured, even if you have enabled automatic capture for other payment methods. Capturing the payment is what triggers the invoice to be sent to the shopper and starts the payment schedule. If you do not manually capture the payment within 30 days, the authorization will expire. If you require a longer period before authorizations expire, contact our Support Team. They will inform you when Riverty has updated the expiration period for you.

Partial captures

To partially capture a Riverty payment, specify in your /payments/{paymentPspReference}/captures request: Only specify the items that you are capturing. Any unclaimed amount that is left after partially capturing a payment should be manually cancelled. To set up multiple partial captures, contact our Support Team. Multiple partial captures will create a new invoice for each capture. The following example shows how to make a partial capture request if the shopper only kept item #1 of the order. Example /captures request
The following response is returned: Example /captures response
Manually cancel any amount that remains after partially capturing a payment. If a part of the authorized amount has been captured, simply sending an empty /payments/{paymentPspReference}/cancels request releases the remaining balance (without having to specify the lineItems remaining that need to be canceled). Example /cancel request
To set up multiple partial captures, contact our Support Team. Multiple partial captures will create a new invoice for each capture. 

Refunds and cancellations

If you have not captured a Riverty payment, you can cancel it. If you have captured the payment and you want to return the funds to the shopper, you need to refund it. As with captures, you don’t need to specify lineItems in the refund request if you are doing a full refund. To partially refund a Riverty payment, specify in your /payments/{paymentPspReference}/refunds request: Only specify the items that you are refunding the money for. The following example shows how to make a partial refund for item #1 of the above order. Example refund request for Riverty
The following response is returned: Example refund response for Riverty
The pspReference in the response is the reference of the refund itself.

Test and go live

Riverty provides detailed error codes, recommendations on how to test some of the most common scenarios as well as a comprehensive list of market specific test data.

Go-live requirements

Riverty requires you to display Terms & Conditions as well as data protection guidelines in your checkout for the shopper to approve before making the payment. See Riverty’s documentation for details.