This upgrades from the legacy version of Stripe's checkout system to the new version: > The legacy version of Checkout presented customers with a modal dialog > that collected card information, and returned a token or a source to > your website. In contrast, the new version of Checkout is a smart > payment page hosted by Stripe that creates payments or subscriptions. It > supports Apple Pay, Dynamic 3D Secure, and many other features. Basic overview of the new system: * We send the user to a checkout page on Stripe. * Stripe collects payment and sends us a webhook notification when the order is complete. * We receive the webhook notification and upgrade the user. Docs: * https://stripe.com/docs/payments/checkout * https://stripe.com/docs/payments/checkout/migration#client-products * https://stripe.com/docs/payments/handling-payment-events * https://stripe.com/docs/payments/checkout/fulfill-orders
68 lines
1.6 KiB
JSON
68 lines
1.6 KiB
JSON
{
|
|
"id": "evt_000",
|
|
"object": "event",
|
|
"api_version": "2020-08-27",
|
|
"created": 1608705945,
|
|
"data": {
|
|
"object": {
|
|
"id": "pi_000",
|
|
"object": "payment_intent",
|
|
"amount": 2000,
|
|
"amount_capturable": 0,
|
|
"amount_received": 0,
|
|
"application": null,
|
|
"application_fee_amount": null,
|
|
"canceled_at": null,
|
|
"cancellation_reason": null,
|
|
"capture_method": "automatic",
|
|
"charges": {
|
|
"object": "list",
|
|
"data": [],
|
|
"has_more": false,
|
|
"total_count": 0,
|
|
"url": "/v1/charges?payment_intent=pi_000"
|
|
},
|
|
"client_secret": "pi_000",
|
|
"confirmation_method": "automatic",
|
|
"created": 1608705945,
|
|
"currency": "usd",
|
|
"customer": null,
|
|
"description": null,
|
|
"invoice": null,
|
|
"last_payment_error": null,
|
|
"livemode": false,
|
|
"metadata": {},
|
|
"next_action": null,
|
|
"on_behalf_of": null,
|
|
"payment_method": null,
|
|
"payment_method_options": {
|
|
"card": {
|
|
"installments": null,
|
|
"network": null,
|
|
"request_three_d_secure": "automatic"
|
|
}
|
|
},
|
|
"payment_method_types": [
|
|
"card"
|
|
],
|
|
"receipt_email": null,
|
|
"review": null,
|
|
"setup_future_usage": null,
|
|
"shipping": null,
|
|
"source": null,
|
|
"statement_descriptor": null,
|
|
"statement_descriptor_suffix": null,
|
|
"status": "requires_payment_method",
|
|
"transfer_data": null,
|
|
"transfer_group": null
|
|
}
|
|
},
|
|
"livemode": false,
|
|
"pending_webhooks": 3,
|
|
"request": {
|
|
"id": "req_000",
|
|
"idempotency_key": null
|
|
},
|
|
"type": "payment_intent.created"
|
|
}
|