Skip to main content
Our Ratepay Component renders Ratepay in your payment form, and collects the required payment information from the shopper. When making a Ratepay payment, you also need to:
  1. Collect shopper details, and specify these in your payment request.
  2. Provide information about the purchased items by specifying lineItems in your payment request.
  3. Using Ratepay’s device fingerprinting,calculate the shopper’s device fingerprint, and specify it in your payment request. Ratepay uses the fingerprint for risk evaluation.
  4. Capture the payment after the goods have been sent. This triggers the invoice to be sent to the shopper by the merchant.

Requirements

Import resources for v6

If you are using Web Components v6, import the Component that you need for Ratepay:

Show Ratepay in your payment form

To present the Ratepay Component in your payment form:
  1. From your server, make a POST /paymentMethods request and specify one of the following combinations of countryCode and amount.currency: The response contains supported payment method types:
  2. Pass the full response from the /paymentMethods call as the paymentMethodsResponse object when creating an instance of the AdyenCheckout.
  3. Add the Ratepay Component: a. Create a DOM element for Ratepay, placing it where you want the form to be rendered:
    b. Create an instance of the Ratepay Component, and mount it. You can also include optional configuration.

Optional configuration

When you create the instance of the Component, you can add additional configuration for Ratepay. Example icon and name configuration

Pre-filled shopper data

You can add configuration with the shopper’s information, so that you can pre-fill the payment form. The configuration is different for Direct Debit and Open Invoice.
The data property includes the following information that you can pre-fill:Example of pre-filled data for direct debit

Payment form fields configuration

In the payment form, you can configure if groups of fields are visible or can be edited by the shopper.Example of Ratepay Direct Debit configuration object with default visibility values