No momento, esta página não está disponível em português
Payment-method icon

Oney Drop-in integration

Add Oney to an existing Drop-in integration.

This page explains how to add Oney to your existing Web Drop-in integration.

When making a Oney payment request:

  1. Collect shopper details and include them in the request.
  2. Provide information about the purchased items by specifying lineItems.
  3. Make sure that the payment is authorised and successfully captured before you ship the goods.

Requirements

Select the server-side flow that your integration uses:

API reference

Select which endpoint you are using:

Drop-in configuration

When you create the instance of Drop-in, you can add optional configuration for Oney. Add the configuration object for each Oney installment type that you support:

Number of installments Payment method type Supported county
3 facilypay_3x France (FR) and Spain (ES)
4 facilypay_4x France (FR) and Spain (ES)
6 facilypay_6x Spain (ES)
10 facilypay_10x France (FR) and Spain (ES)
12 facilypay_12x France (FR) and Spain (ES)

Pre-filled shopper data

The data property includes the following information that you can pre-fill:

Property Description Data type
personalDetails.firstName The shopper's first name. String
personalDetails.lastName The shopper's last name. String
personalDetails.dateOfBirth The shopper's date of birth. Format: YYYY-MM-DD. String
personalDetails.shopperEmail The shoppers' email address. String
billingAddress.street The street name for the billing address. String
billingAddress.houseNumberOrName The house number or name for the billing address. String
billingAddress.postalCode The postal code for the billing address. String
billingAddress.city The city for the billing address. String
billingAddress.country The two-character ISO 3166-1 alpha-2 country code for the billing address. String
deliveryAddress.street The street name for the delivery address. String
deliveryAddress.houseNumberOrName The house number or building name for the delivery address. String
deliveryAddress.postalCode The postal code for the delivery address. String
deliveryAddress.city The city for the delivery address. String
deliveryAddress.country The two-character ISO 3166-1 alpha-2 country code for the delivery address. String

Payment form fields configuration

Fields Default value
companyDetails hidden
personalDetails editable
billingAddress editable
deliveryAddress editable
bankAccount hidden

Capture the payment

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

Depending on your capture settings, Oney payments are captured manually or automatically, with or without a delay.

If a payment is captured after more than six days, the payment authorization expires and the payment must be authorised again.

Refund the payment

If a Oney payment has not yet been captured, you can cancel it.

If the payment has already been captured and you want to return the funds to the shopper, you need to refund it.

The minimum refund amount is EUR 1. You can refund payments until 13 months after they have been captured.

Partial refunds

To partially refund a 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 webhook. For more information, refer to Refund.

Test and go live

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

France

Test card number Expiry date CVV
4970 1015 1882 0000 Any date within 3 years from now. Any value.
4970 1030 6015 0000 Any date within 3 years from now. Any value.
4970 1027 3124 0000 Any date within 3 years from now. Any value.
4970 1022 9571 0000 Any date within 3 years from now. Any value.
4970 1093 1788 0000 Any date within 3 years from now. Any value.
4970 1017 0783 0000 Any date within 3 years from now. Any value.
4970 1090 7275 0000 Any date within 3 years from now. Any value.
4970 1084 5160 0000 Any date within 3 years from now. Any value.

You can test 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

To test different responses when making payments in 10 or 12 installments, you need to include the following:

  • Authorised:

    • Shopper email: 10X12X.OK.BDE@oney.fr.
    • Under Complétez vos informations, include:
      • Vos revenus: 3500€
      • Origine du revenu principal: Salarie
      • Vos charges: 500€
    • Under Signez votre contrat, include:
      • Phone number: use 0666000000 to bypass a digital signature, or a real phone number to receive the OTP SMS for digital signing.
  • Refused:

    • Shopper email: 10X12X.KO.BDE@oney.fr.
    • In the Completez vos informations step, include:
      • Vos revenus: 1000€
      • Origine du revenu principal: Autres
      • Vos charges: 800€

To test the full Oney payment flow, contact our Support Team.

Spain

Test card number Expiry date CVV
5436 0310 3060 6378 01/2099 257
5199 9923 1264 1465 01/2099 010
2223 0000 1047 9399 01/2099 299
4543 4740 0224 9996 01/2099 956

You can test the different responses by using the following information:

  • Authorised:
    • Shopper email: test_ok@oney.com
    • Correct CVV
  • Refused:
    • Shopper email: test_ko@oney.com
    • Incorrect CVV

If you have issues accessing the Buy Now Pay Later subscription form when testing for Spain, or Italy, make sure that your IP address is from the EU region. For assistance, contact your network administrator. Alternatively, contact our Support Team to can provide a static IP address range to be allowlisted by Oney.

Go live

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

See also