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, includeRiverty.
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 theRiverty 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
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 specifylineItems 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
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.- Collect your shopper’s details and specify these in your /payments request.
-
When you make the /payments request, include the following information.
- The shopper’s details that you collected.
- The details of the items, in the
lineItemsobject. - Optional: if you use profile tracking from Riverty to calculate the profile tracking ID, include
deviceFingerprint.
- 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
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.
- When the shopper goes to the checkout page, run the script. It outputs a profile tracking ID.
- Encrypt the profile tracking ID in a string.
- 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
paymentMethod.type: riverty.
Example response with Riverty available
Import
Import Riverty
When you import Adyen Web, includeRiverty.
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 theRiverty 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
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
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 specifylineItems 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
pspReference in the response is the reference of the refund itself.
