【问题标题】:How to pass card information to checkout when redirecting (Stripe)重定向时如何将卡信息传递给结帐(Stripe)
【发布时间】:2022-07-12 05:48:00
【问题描述】:

Python下面的代码,我想通过卡信息卡号,cvc,卡片上的名字等到查看条纹重定向时:

stripe.checkout.Session.create(
    mode="payment",
    payment_method_types=['card'],
    line_items=[
        {
            'price_data': {
                'currency': 'jpy',
                'unit_amount': 2000,
                'product_data': {
                    'name': 'Honey',
                    'description': 'Good honey',
                },
            },
            "quantity": 2,
        },
    ],
    success_url="https://example.com/success",
    cancel_url="https://example.com/cancel",
)

我读了Create a Session in Stripe Doc 但我找不到参数去做吧。

那么,是不是不能通过卡信息查看条纹重定向时?

【问题讨论】:

    标签: python python-3.x stripe-payments checkout credit-card


    【解决方案1】:

    无法传递付款信息来创建结帐会话。这就是使用 Stripe 的本质——您的团队永远不必收集和存储客户的敏感卡信息。

    通过使用 Checkout,您的客户可以直接与 Stripe 安全地共享他们的付款详细信息,而这些付款详细信息永远不会接触到您的服务器。

    【讨论】:

      猜你喜欢
      • 2020-11-28
      • 2021-02-01
      • 1970-01-01
      • 2021-08-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-09-03
      • 1970-01-01
      相关资源
      最近更新 更多