Update checkout.md with newer Stripe references

This commit is contained in:
James Allan 2024-09-11 09:55:33 +10:00 committed by GitHub
parent 065470dea8
commit 86d28291fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 13 additions and 5 deletions

View File

@ -175,14 +175,14 @@ There are many payment gateways available for merchants to use, and each one wil
An example of the payment data sent to the Checkout endpoint when using the [WooCommerce Stripe Payment Gateway](https://wordpress.org/plugins/woocommerce-gateway-stripe/) is shown below. An example of the payment data sent to the Checkout endpoint when using the [WooCommerce Stripe Payment Gateway](https://wordpress.org/plugins/woocommerce-gateway-stripe/) is shown below.
For further information on generating a `stripe_source` please check [the Stripe documentation](https://stripe.com/docs). For further information on generating a Stripe `payment-method` please check [the Stripe documentation](https://docs.stripe.com/payments/accept-a-payment-deferred).
```json ```json
{ {
"payment_data": [ "payment_data": [
{ {
"key": "stripe_source", "key": "wc-stripe-payment-method",
"value": "src_xxxxxxxxxxxxx" "value": "pm_xxxxxxxxxxxxx"
}, },
{ {
"key": "billing_email", "key": "billing_email",
@ -197,7 +197,7 @@ For further information on generating a `stripe_source` please check [the Stripe
"value": "Doe" "value": "Doe"
}, },
{ {
"key": "paymentMethod", "key": "payment_method",
"value": "stripe" "value": "stripe"
}, },
{ {
@ -207,7 +207,15 @@ For further information on generating a `stripe_source` please check [the Stripe
{ {
"key": "wc-stripe-new-payment-method", "key": "wc-stripe-new-payment-method",
"value": true "value": true
} },
{
"key": "wc-stripe-is-deferred-intent",
"value": true
},
{
"key": "save_payment_method",
"value": "yes"
},
] ]
} }
``` ```