CheckoutPaymentMethod

CheckoutPaymentMethod = PaymentMethod | 'credit-card' | string & {}

Source: global.ts:1873

The method the shopper chose: every PaymentMethod the orders API takes, plus credit-card, plus any other name the page offered.

The names are the API's own, so a listener reading this and a request going out say the same thing. credit-card is the single exception: it is what this store has always held for a card, and it becomes card_token on the order. A page writes credit for that method, which is the markup's word for it.

The open end is deliberate. A store can be given a new way to pay before this SDK release knows about it, so a name that is not in PaymentMethod is passed through to the orders API rather than replaced with a card. The API decides whether it can charge that way.

Every method except a directly-charged card sends the shopper away to pay, so the created order comes back carrying a payment_complete_url to finish at. See Order.payment_complete_url.