我正在使用條形支付網關進行結帳/會話 api
curl https://api.stripe.com/v1/checkout/sessions \
-u sk_test_123: \
-d success_url="https://google.com/success" \
-d cancel_url="https://yahoo.com/cancel" \
-d "line_items[0][price_data][currency]"=USD \
-d "line_items[0][price_data][product_data][name]"=ABC \
-d "line_items[0][price_data][unit_amount]"=150 \
-d "line_items[0][quantity]"=1 \
-d mode=payment
我可以在其中手動設定任何引數或識別符號,我將在成功剝離 web-hooks 中收到這些引數或識別符號嗎?
uj5u.com熱心網友回復:
curl https://api.stripe.com/v1/checkout/sessions \
-u sk_test_123: \
-d success_url="https://google.com/success" \
-d cancel_url="https://yahoo.com/cancel" \
-d "line_items[0][price_data][currency]"=USD \
-d "line_items[0][price_data][product_data][name]"=ABC \
-d "line_items[0][price_data][unit_amount]"=150 \
-d "line_items[0][quantity]"=1 \
-d "metadata[order_id]"=waybill \
-d mode=payment
您可以設定元資料,您將在 checkout.session.completed 中收到它
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/512909.html
標籤:卷曲条纹支付查看
