Checkout icon

Partial payments

Let your shoppers make a purchase with multiple payment methods.

The partial payments flow lets shoppers pay for one purchase with more than one payment method. For example, a shopper can use a gift card with a balance lower than the amount of the purchase, and pay the remaining amount with a card. When the shopper makes a partial payment, create an order for the full amount, and the shopper makes payments until the order is paid in full, canceled, or expires.

For online payments integrations with the Advanced flow, you must implement additional API requests to create an order, make payments, and complete or cancel the order.

For integrations with the Sessions flow:

You make only the /sessions request from your server. Drop-in and Components handle the complete partial payment flow for gift cards, Titres-Restaurant, and ANCV without additional API requests from your server.

You do not need to implement the instructions on this page.

Requirements

Requirement Description
Integration type Make sure that you have an integration with the Advanced flow.

How it works

A partial payment works as follows:

  1. Your server makes a /orders request with the full amount of the purchase. We send you a webhook message with eventCode: ORDER_OPENED.
  2. Your server makes a /payments request for the first payment method, with the order. The response contains the remaining amount and a new orderData value. We send you a webhook message with eventCode: AUTHORISATION.
  3. Your server makes a /payments request for each next payment method, with the order and the latest orderData value. We send you a webhook message with eventCode: AUTHORISATION for each payment.
  4. When the authorized payments cover the full amount, we send you a webhook message with eventCode: ORDER_CLOSED and success: true. You can use this to fulfill the order, without waiting for the payments to be captured.

If you cancel the order, or it expires before the remaining amount is paid, we cancel or refund the partial payments. We then send you a webhook message with eventCode: ORDER_CLOSED and success: false.

CnNlcXVlbmNlRGlhZ3JhbQogICAgcGFydGljaXBhbnQgU2hvcHBlcgogICAgcGFydGljaXBhbnQgU2VydmVyIGFzIFlvdXIgc2VydmVyCiAgICBwYXJ0aWNpcGFudCBBZHllbgoKICAgIFNob3BwZXItPj5TZXJ2ZXI6IFBheSB3aXRoIGEgZ2lmdCBjYXJkCiAgICBTZXJ2ZXItPj5BZHllbjogUE9TVCAvb3JkZXJzIHdpdGggdGhlIGZ1bGwgYW1vdW50CiAgICBBZHllbi0tPj5TZXJ2ZXI6IE9yZGVyIHBzcFJlZmVyZW5jZSwgb3JkZXJEYXRhLCBhbmQgcmVtYWluaW5nQW1vdW50CiAgICBBZHllbi0pU2VydmVyOiBPUkRFUl9PUEVORUQgd2ViaG9vawogICAgU2VydmVyLT4+QWR5ZW46IFBPU1QgL3BheW1lbnRzIHdpdGggdGhlIGdpZnQgY2FyZCBhbmQgdGhlIG9yZGVyCiAgICBBZHllbi0tPj5TZXJ2ZXI6IFJlbWFpbmluZyBhbW91bnQgYW5kIG5ldyBvcmRlckRhdGEKICAgIEFkeWVuLSlTZXJ2ZXI6IEFVVEhPUklTQVRJT04gd2ViaG9vawogICAgU2hvcHBlci0+PlNlcnZlcjogUGF5IHRoZSByZW1haW5pbmcgYW1vdW50IHdpdGggYSBjYXJkCiAgICBTZXJ2ZXItPj5BZHllbjogUE9TVCAvcGF5bWVudHMgd2l0aCB0aGUgY2FyZCBhbmQgdGhlIGxhdGVzdCBvcmRlckRhdGEKICAgIEFkeWVuLS0+PlNlcnZlcjogUmVtYWluaW5nIGFtb3VudCAwCiAgICBBZHllbi0pU2VydmVyOiBBVVRIT1JJU0FUSU9OIHdlYmhvb2sKICAgIEFkeWVuLSlTZXJ2ZXI6IE9SREVSX0NMT1NFRCB3ZWJob29rLCBzdWNjZXNzIHRydWUK

Create an order

  1. Make a POST /orders request, and specify:

    Parameter Required Description
    amount -white_check_mark- The currency and full value of the order.
    reference -white_check_mark- Your unique identifier for this order.
    expiresAt The automatic expiry time for the order. If not provided, the order expires 24 hours after the creation date. The expiresAt field is specified in ISO 8601. For example, 2019-01-01T14:21:00.
  2. The response contains the following fields that you need to make payments:

    We also send you a webhook message with eventCode: ORDER_OPENED when the order has been created.

Make a payment

  1. Make a POST /payments request including:

    Parameter Required Description
    amount -white_check_mark- The payment amount. If this is less than the remainingAmount from the /orders response, it is a partial payment.
    paymentMethod -white_check_mark- The payment method.
    order.pspReference -white_check_mark- The pspReference from the /orders response.
    order.orderData -white_check_mark- The orderData from the /orders response.

    In case of a redirect payment method such as iDEAL, you need to handle the redirect

  2. The response contains an order object that shows the remaining amount required on the order. You also get a new orderData value that you must include in your next payment request.

Completing an order

After making enough partial payments to pay the full order amount, you get a response with the remainingAmount.value of 0.

We also send a webhook message with eventCode: ORDER_CLOSED and success: true when the authorized payments cover the full order amount. You can use this as an indication to fulfill the order, so that you do not wait for all the payments to be captured or settled.

Cancel an order

We automatically cancel an order that has not been completed and has a remaining amount greater than 0 when it reaches the expiry time.

You can also manually cancel an incomplete order. When you manually cancel an order, all the previous payments for that order are either canceled or refunded, depending on the type of payment method.

Make a /orders/cancel request including:

Parameter Required Description
order.pspReference -white_check_mark- The pspReference from the /orders response.
order.orderData -white_check_mark- The orderData from the most recent /orders response.

When an order has been canceled, we send a webhook message with eventCode: ORDER_CLOSED and success: false.

Cancel a completed order

If you want to cancel an order that has the remaining amount of 0, how you can cancel the order depends on the situation:

See also