Payment-method icon

Riverty Drop-in integration

Add Riverty to an existing Drop-in integration.

Accept Riverty payments using an existing Drop-in integration. Our Web Drop-in renders Riverty in your payment form, and collects the required payment information from the shopper.

Because Riverty uses a profile tracking ID, Riverty can only be used with the Advanced flow, not with the Sessions flow.

When accepting a payment with Riverty:

  1. Collect your shopper's details, and specify these in your /payments request.
  2. Provide information about the purchased items in the lineItems object of your /payments request.
  3. Use Riverty’s profile tracking technology to calculate the profile tracking ID, and specify this in your /payments request. Riverty uses this identifier for risk evaluation.
  4. Capture the payment after the goods are sent. This triggers the invoice that the merchant sends to the shopper.

Before you begin

Riverty is available from v5.58.0 of the adyen-web library.

Before starting your Riverty integration:

  1. Make sure that you have done the Drop-in integration.
  2. Add Riverty in your test Customer Area.

Show Riverty in your payment form

Drop-in uses the countryCode and the amount.currency from the /paymentMethods request to show the available payment methods to your shopper.

To show Riverty in your payment form, specify one of the following combinations in your /paymentMethods request:

Country countryCode amount.currency
Germany DE EUR
Austria AT EUR
Switzerland CH CHF

The response contains the payment method type riverty.

Optional Drop-in configuration

Create an instance of Drop-in, and optionally configure Drop-in to show fields for Riverty':

Parameter Description
personalDetails Shopper name, date of birth, phone number, and email address.
billingAddress The address where to send the invoice.
deliveryAddress The address where the purchased goods should be delivered.

If you remove these fields from your payment form, you need to provide this information in your /payments request. For information on the required fields, refer to Make a payment.

This is an example of creating an instance of Drop-in with various configuration options:

const dropin = checkout
    .create('dropin', {
        paymentMethodsConfiguration: {
            riverty: { // Optional configuration for Riverty Invoice
                visibility: {
                    personalDetails: "hidden", // These fields will not appear on the payment form.
                    billingAddress: "readOnly", // These fields will appear on the payment form,but the shopper can't edit them.
                    deliveryAddress: "editable" //These fields will appear on the payment form, and the shopper can edit them. This is the default behavior.
                }
            }
        }
    })
    .mount('#dropin');

When the shopper selects to pay with Riverty, Drop-in calls the onSubmit event which contains a state.data. Pass the state.data to your server and make a /payments request from your server.

Make a payment

Riverty uses profile tracking technology to recognize a shopper's device and identify possible fraud attempts. Before making a payment, implement Riverty’s profile tracking integration. Send the calculated profile tracking ID (using the deviceFingerprint parameter) when making a /payments request.

From your server, make a /payments request:

Parameter Required Description
paymentMethod.type -white_check_mark- riverty
paymentMethod.deviceFingerprint -white_check_mark- A string containing the shopper's calculated profile tracking ID
shopperName.firstName -white_check_mark- Shopper's first name.
shopperName.lastName -white_check_mark- Shopper's last name.
telephoneNumber -white_check_mark- Shopper's telephone number.
shopperEmail -white_check_mark- Shopper's email address.
dateOfBirth -white_check_mark- Shopper's date of birth, in format: YYYY-MM-DD
shopperIP -white_check_mark- The shopper's IP address. Riverty uses this for risk checks.
billingAddress -white_check_mark- The address where to send the invoice.
deliveryAddress -white_check_mark- The address where the purchased goods should be delivered.
lineItems -white_check_mark- Price and product information about the purchased items. This is included on the invoice that Riverty sends to the shopper.

The /payments response contains:

Parameter Description
resultCode Use this to present the payment result to your shopper.
pspReference Our unique reference for the payment.
merchantReference Your reference from the /payments request.

Present the payment result

Use the  resultCode that you received in the /payments response to present the payment result to your shopper.

The resultCode values you can receive for Riverty are:

resultCode Description Action to take
Authorised The payment was successfully authorised. Inform the shopper that the payment was successful.
After the goods have been sent, you also need to capture the payment.
Refused The payment was refused by Riverty. Ask the shopper to try the payment again using a different payment method.

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.

Partial captures

To partially capture a Riverty payment, specify in your /payments/{paymentPspReference}/captures request:

Parameter Description
amount The amount that the shopper should pay.
lineItems Price and product information for the items that the shopper should pay for. You only need to specify lineItems if you are sending a partial capture, not if you are sending a full capture. The sum of the lineItems must match the amount declared in the capture call, otherwise Adyen will add a dummy lineItems entry to account for the difference.

Only specify the items that you are capturing.

The following example shows how to make a partial capture request if the shopper only kept item #1 of the order.

The following response is returned:

Manually cancel any amount that remains after partially capturing a payment.

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:

Parameter Description
amount The amount that is refunded to the shopper.
lineItems Price and product information for the items that the shopper should pay for. The sum of the lineItems needs to match the amount declared in the refund call. If they do not match, Adyen will add a dummy lineItem entry to account for the difference.

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.

The following response is returned:

The pspReference is specifically for the refund transaction, not for the original payment.

Test and go live

To test Riverty, submit a request to add Riverty in your test Customer Area.

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.

See also