PaymentMethodRequest

object
object (Card)
type
string

The type of payment method.

  • CARD - Payment card.
  • CARD_PRESENT - This is reserved for future use.
Enum: "CARD" "CARD_PRESENT"
usage
string or null

Field used to determine if the logged-in customer will save the payment method for future usage. The value is ON_SESSION for cards saved during checkout. The value is NULL if the card will not be saved for future usage.

  • ON_SESSION - Saves the payment method for future usage by the customer.

  • OFF_SESSION - Saves the payment method for future usage initiated by the restaurant.

  • ON_AND_OFF_SESSION - Reserved for future use.

Enum: "ON_SESSION" "OFF_SESSION" "ON_AND_OFF_SESSION"
{
  • "type": "CARD",
  • "card": {
    },
  • "billingDetails": {
    },
  • "usage": "ON_SESSION"
}