Search

Are you looking for test card numbers?

Would you like to contact support?

Payment-method icon

3x 4x Oney for API only

Add 3x 4x Oney to an existing API-only integration.

Accept 3x 4x Oney payments using our APIs, and build your own payment form to have full control over the look and feel of your checkout page.

When making a 3x 4x Oney payment:

  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. Make sure that the payment is authorised and successfully captured before you ship the goods.
  4. If a payment has already been captured and you need to return the funds to your shopper, you need to perform a refund.

Before you begin

These instructions explain how to add 3x 4x Oney to your existing API-only integration. The API-only integration works the same way for all payment methods. If you haven't done this integration yet, refer to our API-only integration guide.

Before starting your 3x 4x Oney integration:

  1. Make sure that you have set up your back end implementation.
  2. Add 3x 4x Oney in your test Customer Area.

Build your payment form for 3x 4x Oney

When making a 3x 4x Oney payment, collect the following shopper details:

Shopper detail Required Description
Full name -white_check_mark- The shopper's first name and last name.
Gender The shopper's gender, if specified.
Email -white_check_mark- The shopper's email address. This is where 3x 4x Oney will send the invoice.
Date of birth The shopper's date of birth, if specified.
Telephone number -white_check_mark- The shopper's telephone number.
Billing address -white_check_mark- The address of the shopper associated with their payment details, to be included on the invoice.
Delivery address -white_check_mark- The postal address of the shopper where the items will be delivered.

If you are using the /paymentMethods endpoint to show the available payment methods to the shopper, specify the following in your request:

Based on the countryCode, the /paymentMethods response contains:

paymentMethod.type Number of installments and country
facilypay_3x for 3 Oney installments in France (FR) or Spain (ES).
facilypay_4x for 4 Oney installments in France (FR) or Spain (ES).
facilypay_6x for 6 Oney installments in Spain (ES).
facilypay_10x for 10 Oney installments in Spain (ES).
facilypay_12x for 12 Oney installments in Spain (ES).

We provide logos for 3x 4x Oney which you can use on your payment form. For more information, refer to Downloading logos.

Make a payment

From your server, make a /payments request, specifying:

  • paymentMethod.type: The type of 3x 4x Oney payment the shopper wants to use. Possible values: 

    • facilypay_3x (FR or ES)
    • facilypay_4x (FR or ES)
    • facilypay_6x (ES only)
    • facilypay_10x (ES only)
    • facilypay_12x (ES only)
  • firstName: The shopper's first name. Maximum length: 32 characters.
  • lastName: The shopper's last name. Maximum length: 32 characters.
  • gender: The shopper's gender, if specified.
  • shopperEmail: The shopper's email address. This is where 3x 4x Oney will send the payment instructions.
  • dateOfBirth: The shopper's date of birth, if specified. The format must be YYYY-MM-DD.
  • telephoneNumber: The shopper's telephone number, using an international number format.
    • France : +336 or +337 followed by 8 digits
    • Spain : +346 or +347 followed by 8 digits
  • billingAddress:  The address of the shopper associated with their payment details.
    •  billingAddress.postalCode must have 5 characters.
  • deliveryAddress: The postal address of the shopper where the items will be delivered.
    • deliveryAddress.postalCode must have 5 characters.
  • countryCode: The shopper's country.
  • shopperLocale: A combination of language code and country code to specify the language used in your checkout. Refer to list of supported languages.
  • lineItems: Price and product information about the purchased items. 
    3x 4x Oney will only approve the payment if the total amount specified in lineItems matches the amount.value.
  • shopperReference: A unique reference to identify the shopper (minimum length three characters).
  • returnUrl: The URL where the shopper will be redirected back to after completing the payment. The URL can contain a maximum of 1024 characters and must include the protocol: http:// or https://. For example, https://your-company.com/checkout/. You can also include your own additional query parameters, for example, shopper ID or order reference number.
  • Include an optional field in the additionalData object. When we set up 3x 4x Oney for your merchant account, we also configure who pays the interest fees. You can use this field to override the default configuration.

    • oneydata.merchantPays: A boolean that indicates whether the shopper pays for interest fees.
      • Set this to true to indicate that you collect the interest fees from the shopper (the shopper pays interest fees).
      • Set this to false if you do not collect interest fees (the shopper doesn't pay interest fees).

The /payments response contains an action object with the information needed to redirect the shopper.

/payments response
{
   "resultCode":"RedirectShopper",
   "action":{
      "paymentMethodType":"facilypay_3x",
      "method":"GET",
      "url":"https://checkoutshopper-test.adyen.com/checkoutshopper/checkoutPaymentRedirect?redirectData=...",
      "type":"redirect"
   }
}

Handle the redirect

  1. To complete the payment, redirect the shopper to the action.url returned in the /payments response.
    When using the HTTP GET method:
    For security reasons, when displaying the redirect in the app, we recommend that you use SFSafariViewController for iOS or Chrome Custom Tabs for Android, instead of WebView objects. Also refer to the security best practices for WebView.
  2. After the shopper is redirected back to your website, check the payment result by making a POST /payments/details request, specifying:
    • details: Object that contains the URL-decoded redirectResult returned when the shopper was redirected back to your site.
    /payments/details request
    curl https://checkout-test.adyen.com/v67/payments/details \
    -H "x-API-key: YOUR_X-API-KEY" \
    -H "content-type: application/json" \
    -d '{
       "details": {
         "redirectResult": "eyJ0cmFuc1N0YXR1cyI6IlkifQ=="
     }
    }'

You receive a response containing:

  • resultCode: Use this to present the result to your shopper.
  • pspReference: Our unique identifier for the transaction.
    /payments/details response
    {
     "resultCode": "Authorised",
     "pspReference": "88154795347618C"
    }

After you have checked the payment result, use the resultCode in the /payments/details response to present the payment result to your shopper.

Present the payment result

Use the resultCode from the /payments/details response to present the payment result to your shopper. The resultCode values you can receive for 3x 4x Oney are:

resultCode Description Action to take
Authorised The payment was successful. Inform the shopper that the payment was successful. Ship the goods after you successfully capture the payment.
Cancelled The shopper cancelled the payment. Ask the shopper whether they want to continue with the order, or ask them to select a different payment method.
Refused The payment was refused by 3x 4x Oney, because it didn't pass their risk checks. Ask the shopper to try the payment again using a different payment method.
Pending or Received
See note 1
3x 4x Oney has not confirmed the final status of the payment yet, for example because of suspected fraud. If the payment is not authorised within 24 hours, it is automatically cancelled. Inform the shopper that you've received their order, and are waiting for the payment to be completed.
To know the final result of the payment, wait for the AUTHORISATION notification.

1 Pending or received is only applicable for 3x 4x Oney payments with countryCode FR. Payments with countryCode ES are accepted or rejected immediately.

Capture the payment

Make sure that the payment is captured successfully before you ship the goods.

France

All 3x 4x Oney payments have to be manually captured within six days after authorisation, even if you have enabled automatic capture on your merchant account.

If you can guarantee that the goods are shipped within 24 hours of capturing the payment, our Support Team can also set up automatic capture for 3x 4x Oney payments.

Currently, you cannot do partial captures with 3x 4x Oney for France.

Spain

All 3x 4x Oney payments are captured automatically after authorisation.
Currently, you cannot do partial captures with 3x 4x Oney for Spain.

Refund the payment

If a 3x 4x Oney payment has not yet been captured, you can cancel it. Cancelling is only possible for 3x 4x Oney payments with countryCode FR because payments with countryCode ES are captured immediately after authorisation.
If the payment has already been captured and you want to return the funds to the shopper, you need to refund it.

You can refund payments until 13 months after they have been captured.

Partial refunds

To partially refund a 3x 4x Oney payment, specify in your call to the /payments/{paymentPspReference}/refunds endpoint:

  • modificationAmount: The amount to be refunded to the shopper.
{
   "merchantAccount":"YOUR_MERCHANT_ACCOUNT",
   "modificationAmount":{
      "currency":"EUR",
      "value":400
   },
   "originalReference":"8825408195409505"
}

You will receive a /payments/{paymentPspReference}/refunds response containing a pspReference associated with this request. Once we have processed your request, you will also receive a REFUND notification. For more information, refer to Refund.

Test and go live

Before accepting live 3x 4x Oney payments, test your integration using the following test details:

France

Test card number Expiry date CVV
4970 1015 5874 4789 Any date in the future Any value
4970 1090 4680 2374 Any date in the future Any value
4970 1090 0325 6200 Any date in the future Any value

You can test the different responses by changing the amount to be paid:

  • Authorised: Between EUR 150.00 and EUR 999.99
  • Pending: Between EUR 1000.00 and EUR 1499.99
  • Refused: Between EUR 1500.00 and EUR 2000.00

Spain

Test card number Expiry date CVV
4907 2720 1107 2841 Any date in the future Any value
5410 0800 0888 8005 Any date in the future Any value

You can test the different responses using different documento nacional de identidad (DNI, Spanish ID card) numbers:

  • Authorised: DNI 05696340E
  • Refused: DNI 75914068S

Go live

Before you can accept live 3x 4x Oney payments, you need to submit a request for Oney 3x4x in your live Customer Area.

See also