Credential-on-file payments
Credential-on-file payments are transactions where payment credentials are stored or intended to be stored for future reuse. Card details can either be stored by you or securely stored in our Vault.
There are two types of credential-on-file payments:
-
Customer-initiated transaction (CIT) A payment where the cardholder is actively involved in the transaction. This includes one-off purchases, the initial payment in an automated subscription or instalment series, and returning one-click payments using previously stored card details.
-
Merchant-initiated transaction (MIT) A payment initiated by the merchant as part of an automated subscription or instalment series. An MIT is a subsequent payment in a recurring series that was established by an initial CIT.
The sections below describe the objects and respective properties required depending on the use-case.
credential_on_file object properties
For both CITs and MITs, the credential_on_file object is mandatory and must include the following properties:
initiator
Specifies who initiated the payment:
customer: The payment was initiated by the customer.merchant: The payment was initiated by the merchant.
intent
Specifies the type of payment series the transaction belongs to:
unscheduled: A subsequent payment that does not follow a fixed schedule, such as an ad hoc payment.scheduled: A payment that follows a recurring schedule, commonly used for subscriptions.installment: A payment that is part of a fixed number of scheduled installments.
stage
Specifies whether the payment is the first or a subsequent payment in the series:
initial: The first payment in a scheduled, unscheduled or installment series.subsequent: A later payment in a scheduled or installment series, or a subsequent unscheduled payment.
initial_payment_ids
Specifies the payment identifier for the initial CIT that established the credential-on-file series. This property is required when stage is subsequent, for both CITs and MITs, and must contain one of the following:
paytently: If the initial CIT was processed with Paytently, then the Paytently payment id must be passed here.scheme: If the initial CIT was processed with another provider, then the scheme transaction id must be passed here.
schedule object properties
This object is only required when the credential_on_file.intent is scheduled or installment, for initial customer-initiated payments only.
When the schedule object is used, the following properties can be included depending on the intent:
end_date
Specifies the expected end date of the scheduled or installment series. If an end date cannot be provided, use 2099-01-01.
interval
Specifies the expected timeframe between payments in the scheduled or instalment series. The interval is provided using two properties:
amount: The number of units, for example,2.unit: The unit of time, for example,month.
min_interval_days
Specifies the minimum number of days that must elapse between charges in the series, for example, 20.
installment_count
Specifies the expected number of installments in the plan. This property should only be used when intent is installment, for example, 4.