Skip to main content

Payment Method Object

A payment method is a card a shopper stored during a checkout created with setup_future_usage: "off_session". You charge it later with Charge a Payment Method. Gale never returns the card number.

The Payment Method Object

Attributes

Where it appears

  • GET /api/v2/checkout/{checkout_id} for a checkout that asked for storage
  • The payment_method.saved webhook
  • The order.completed webhook for the order that stored the card, and for every order charged to it
  • Every response from the payment method endpoints

Test and live

A payment method stored with a glm_test_ key exists only in test mode, and one stored with a glm_live_ key exists only in live mode. A key from the other mode gets 404.