#stone-customer-paymentmethod

1 messages · Page 1 of 1 (latest)

fast wraith
#

you use the PaymentIntents API and you pass customer: 'cus_123'and payment_method: 'pm_ABC'

#

there's no automatic pull of the default one, you always have to be explicit

swift scroll
#

Is there interaction with customer in that?

fast wraith
#

not sure what you mean?

swift scroll
#

Is it possible to charge through the API without user involvement?

fast wraith
snow forge
snow forge
fast wraith
#

ah yeah I chose the wrong link in my history though it works the same way :p

#

nice catch 🙂

swift scroll
#

In the case the card is declined or requires 3DS, what's the practise?

brisk anvil
#

Hi @snow forge I'm taking over this thread

swift scroll
#

Would you chart In Chinese?

brisk anvil
#

I can speak Chinese. I can continue the conversation in Chinese if this is the language that your prefer.

Please note that not all Stripe engineers can speak Chinese. If you have a follow-up question in a near future, please ask in English first in this discord server.

swift scroll
#

Ok, I will detail my senarios.

brisk anvil
#

好的 🙂

swift scroll
#

Suppose a scenario: Currently, I have a subscription package: August 1st to September 1st $10 per month.
Now time: August 15th, Requirement 1: I want to upgrade the subscription to a monthly package of $20, the subscription period and anchor cycle remain unchanged.
Requirement 2: I want to upgrade the subscription to an annual plan of $100, the subscription period and anchor cycle remain unchanged.

I'm not sure how to implement them using API, user is using Android as well as iOS APP instead of JS.

#

假设一个场景:当前,我拥有一个订阅套餐:8月1日 到 9月1日 每个月 $10.
现在时间:8月15日, 需求1:我想升级该订阅到 $20的月度套餐,订阅的period以及anchor cycle都不变.
需求2:我想升级该订阅到 $100的年度套餐,订阅的period以及anchor cycle都不变.

我不确定如何使用API实现他们,用户使用的是Android以及iOS APP 而不是JS.

brisk anvil
#

收到,接下来我们说直接说中文就好了。

swift scroll
#

💯

brisk anvil
swift scroll
#

场景1中我们希望实现: 按照差额立即收取20/2-10/2 = $5的费用,并且下次收费的时间以及周期不变,下个月订阅按照$20收取费用.

#

我参考过文档,文档中描述两种方式(据我所知)- prorations:always_invoice, None; 但是看起来都不是我们想要的.

brisk anvil
#

proration_behaviour=always_invoice 就是你需要的场景。

#

If you want the customer to immediately pay the price difference when switching to a more expensive subscription on the same billing cycle, you can set proration_behavior to always_invoice, which will calculate the proration and then immediately generate an invoice after making the switch.

swift scroll
#

不好意思,我更正下 收费费用应该是:20-10=$10

brisk anvil
#

这样不合理。因为这个月份还没有结束,需要退回用户旧订阅费用的一半$5 。

swift scroll
#

同意你的看法,目前从产品侧传递信息 是需要这么实现。

brisk anvil
swift scroll
#

模拟过

#

这Stripe提供的方式不是我们想要的

brisk anvil
#

所以你的业务逻辑是不退回旧订阅费用吗?

swift scroll
#

上限

#

其他的就不退了,这是为了收取更多的费用.

#

我想到一个变通的方式,你可以看下是否合理以及如何实现?
我可以在后台收取差额,等到webhook收到成功信息后,我取消掉当前的订阅,后面的订阅为新的套餐标准。

brisk anvil
#

我个人是不建议这么做,毕竟客户已经订阅了一个月的套餐,在升级后,理论上客户就无法享用旧套餐,应该要把钱退回。

swift scroll
#

我们暂时不挑战这个需求的合理性.

brisk anvil
#

proration 一直以来都是这个逻辑。

brisk anvil
swift scroll
#

是的,我看了上述连接可以实现订阅修改这部分。

#

我可以在后台收取差额,等到webhook收到成功信息后 - 如果收费的时候遇到3DS验证。我应该如何处理?

#

如何才能让用户顺利的支付上费用?

brisk anvil
#

关于 3DS 的部分我之前说过了,需要通过调用 stripe.confirmCardPayment 来发起 3DS 流程。另外一种方式是让 Stripe 发邮件给客户,客户通过邮件里的链接来完成 3DS

swift scroll
#

ok

#

Proration 方式下,如果差价是$1 如何收取手续费?

#

当初不用Stripe Proration的方式,这个手续费是一个因素。

brisk anvil
#

我无法回答非技术问题,关于费用的计算请联系 Stripe Support https://support.stripe.com/contact

swift scroll
#

ok

#

需求1中,如何把差价放到下个周期一起收?

brisk anvil
#

可以再重新明确一下你的需求吗?也就是 15 号不收费,旧订阅也不退钱,到下个月 1 号才收 $20 + $10 差价?

swift scroll
#

需求1中, 如果按照您说的使用Stripe Proration的方式,如何把差价放到下个周期一起收?

#

在下个月收费$25

brisk anvil
#

在更新订阅的时候把 proration_behavior 设置成 create_prorations 就好了

swift scroll
#

多谢你

brisk anvil
#

客气

swift scroll
#

需求2:我想升级该订阅到 $100的年度套餐,订阅的cycle anchor不变.
我从参考文档中了解到,anchor会从现在开始.

#

我去做核酸20分钟回来

brisk anvil
#

由于订阅周期的改变,billing_cycle_anchor 必须调整为更改订阅的时间,无法将其设置为其他日期。

swift scroll
#

ok,清楚了,多谢你。
以后有问题还找您,英语有时候很难说清楚复杂需求。

#

💯 👍

brisk anvil
#

客气。有问题随时沟通!

swift scroll
#

这个账单是Stripe提供的

brisk anvil
#

你有这个账单的 invoice ID 吗?

#

截图上有邮件信息,请撤回。

swift scroll
#

没有,这是我在App买的。

brisk anvil
#

我需要 invoice ID 才能查询该账单是如何生成的