payment.selected
The shopper changed the payment method, after checkout.started. The method the form starts with is the Checkout's payment_method.
CODE
next.on('payment.selected', (data, event) => {});Data
| Field | Type | |
|---|---|---|
method | string | The API's code: card_token, paypal, apple_pay, google_pay, klarna, … |
Example
The second argument, with data inside. See Events for the envelope's fields.
CODE
{
"event_id": "3f2b8c1d9e7a4b6c8d5e2f1a0b9c8d7e",
"event_type": "payment.selected",
"object": "payment",
"data": {
"method": "paypal"
},
"created_at": "2026-11-04T08:30:00.000Z",
"session_id": "0b8f3c2d1e4a4f6b9c7d5e3f2a1b0c9d",
"sdk_version": "0.5.0"
}