worldline

Documentation

Card-On-File (COF)

Card information of a cardholder can be tokenized and stored in a secure environment to facilitate a smooth & quick checkout process. Once stored, these stored card credentials otherwise known as Card-On-File (COF) can be used for subsequent transactions.

Storing a card credentials can be flagged during

Flag initial Card-On-File transactions

In your create payment request, you must include cardPaymentData.cardOnFileData object and associated properties.

Field

Remark

isInitialTransaction

Set to "true" to indicate that the transaction is an initial COF transaction.

initialCardOnFileData.transactionType

Indicate the type of the initial COF transaction using any of the appropriate values

  • UNSCHEDULED_CARD_ON_FILE - An initial transaction initiated by the cardholder to store the credentials for future customer initiated transactions in the form of one-click payment during check-out.

  • MERCHANT_INSTALLMENT - An initial transaction initiated by the cardholder to store the credentials to enable the merchant to charge the card towards installment repayments.

  • RECURRING_FIXED - An initial transaction initiated by the cardholder to store the credentials to enable the merchant initiated recurring payments (fixed amount) in future.

  • RECURRING_VARIABLE - Same as above but for variable amount.

initialCardOnFileData.futureUse

Use this to indicate the type of COF transactions expected to be performed referring to this initial transactions. Possible values are

  • MERCHANT_INITIATED - Default. Use this if the credentials are being stored for future MITs.

  • CARDHOLDER_INITIATED - Use this if the credentials are being stored for future CITs.

Below code snippet shows the cardOnFileData fields for initial COF transaction that needs to be included in the authorization request.

{
    "cardPaymentData": {
        "cardOnFileData": {
            "isInitialTransaction": true,
            "initialCardOnFileData": {
                "transactionType": "UNSCHEDULED_CARD_ON_FILE",
                "futureUse": "CARDHOLDER_INITIATED"
            }
        }
    }
}