将一次性的Stripe付款令牌(tok_)与Customer对象相关联 [英] Associate one-off Stripe payment token (tok_) with Customer object
问题描述
是否可以将一次性的Stripe费用/付款与Stripe客户个人资料相关联,但不将卡保存到个人资料中?我真的很想在Stripe仪表板中组织我的客户及其购买的商品,但是我看不到有任何方法可以做到这一点.据我所知,有三种付款方式:
Is it possible to associate a one-off Stripe charge/payment with a Stripe Customer profile but not save the card to the profile? I'd really like to organize my Customers and their purchases within the Stripe dashboard, but I can't see any way to do this. From what I can tell there are three ways to create a payment:
- 使用
source
参数,不使用customer
参数.此实例中的source
参数以tok _
开头 - 使用
customer
参数,该参数将使用文件上的默认卡. - 使用
customer
和source
参数,其中source
是与客户关联的卡ID,从card _
.
- Using the
source
parameter and nocustomer
parameter. Thesource
parameter in this instance starts withtok_
- Using the
customer
parameter, which will use the default card on file. - Using the
customer
andsource
parameters, wheresource
is the card ID associated with the customer starting withcard_
.
我浏览了文档,看不到任何暗示可以使用 customer
和 tok _
来源进行付款的内容.我在这里想念东西吗?
I've looked through the docs and can't see anything that alludes to being able to create a payment using customer
and a tok_
source. Am I missing something here?
推荐答案
Stripe目前不支持此功能.您仍然可以通过一些步骤来做到这一点:
This is not supported by Stripe at the moment. You can still do this though with a few steps:
- 您创建卡令牌
- 您将卡添加到客户
- 您要收取该卡
- 您从客户那里删除卡
这可确保您不保存卡,但仍可将费用与合适的客户相关联.
This ensures that you don't save the card but still have the charge associated with the right customer.
这篇关于将一次性的Stripe付款令牌(tok_)与Customer对象相关联的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!