我使用 Stripe Payment getaway 进行付款,在 Stripe 结账页面显示国家或地区字段,某些国家选择然后邮政编码字段出现,这两个字段都是必需的,那么如何删除此字段。
这是我的代码:
checkout_session = stripe.checkout.Session.create(
line_items=[
{
"price_data": {
"currency": "usd",
"product_data": {
"name": "order",
},
"unit_amount_decimal": 5 * 100,
},
"quantity": 1,
},
],
customer_email="test@gmail.com",
mode="payment",
success_url=success_url,
cancel_url=cancel_url,
Run Code Online (Sandbox Code Playgroud)