Skip to main content
An order is the collection of an amount from a user, managed by Tapipay end to end: Tapipay requests the charge from the payment provider, follows its result and notifies you of every change through a webhook.

How an order is created

It depends on the payment method. Some methods need the user to take part in every payment; others only the first time, to register the method.

You, through the API

With a captured payment method: the user registered it once and from then on you can charge them without their involvement. You create the order with a payment order. Today the only captured method is direct debit.

Your user, in the portal or the SDK

With a method that requires the user to confirm every payment, such as CoDi or BBVA direct payment. The user pays in the Tapipay portal or SDK, and that creates the order.

Order payment methods

A capturable method is one the user registers once with Tapipay and that stays saved with its externalPaymentMethodId. Only capturable methods can be used in a payment order, and to create one the user must have already registered their method. In the webhooks, the order’s method comes in paymentProcessor. If it is capturable, paymentMethod also carries its type and its externalPaymentMethodId; if not, paymentMethod arrives empty ({}).

Which notices you receive

Orders your user creates in the portal or the SDK do not emit the creation notice: you learn about them through the order payment.

Order statuses

Every order starts in PROCESSING. When the payment provider responds, it moves to PAID if the charge was collected or to FAILED if it could not be collected. A PAID order can later move to CHARGED_BACK if the charge is reversed. FAILED and CHARGED_BACK do not change anymore. Every status change of the charge reaches you with the order payment webhook. You can also query a payment order with GET /v2/debts/orders.