将一次性的Stripe付款令牌(tok_)与Customer对象相关联 [英] Associate one-off Stripe payment token (tok_) with Customer object

查看:64
本文介绍了将一次性的Stripe付款令牌(tok_)与Customer对象相关联的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以将一次性的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:

  1. 使用 source 参数,不使用 customer 参数.此实例中的 source 参数以 tok _
  2. 开头
  3. 使用 customer 参数,该参数将使用文件上的默认卡.
  4. 使用 customer source 参数,其中 source 是与客户关联的卡ID,从 card _ .
  1. Using the source parameter and no customer parameter. The source parameter in this instance starts with tok_
  2. Using the customer parameter, which will use the default card on file.
  3. Using the customer and source parameters, where source is the card ID associated with the customer starting with card_.

我浏览了文档,看不到任何暗示可以使用 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:

  1. 您创建卡令牌
  2. 您将卡添加到客户
  3. 您要收取该卡
  4. 您从客户那里删除卡

这可确保您不保存卡,但仍可将费用与合适的客户相关联.

This ensures that you don't save the card but still have the charge associated with the right customer.

这篇关于将一次性的Stripe付款令牌(tok_)与Customer对象相关联的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆