我使用此示例创建Session对象。
https://stripe.com/docs/api/checkout/sessions/create?lang=python
很好。
但是我有一个问题: http请求的标头和正文必须像这样“在幕后”:
Authorization: Bearer sk_test_4eC39HqLyjWDarjtT1zdp7dc
Stripe-Version: 2019-03-14
checkout_sessions_beta: v1
Accept: application/json
Content-Type: application/x-www-form-urlencoded
success_url=https://example.com/success&cancel_url=https://example.com/cancel&payment_method_types=[