douduoyan5943 2017-11-28 17:48
浏览 77

PayPal&Stripe定期结算获得上次用户付款日期

I use Stripe and Paypal REST PHP apis for recurring billing subscriptions. When subscription is cancelled I have webhooks which removes user account.

So, If user doesn't have money on bank account - Stripe & PayPal cancels their subscription, and then my webhook removes this user's account.

I have a question: how to get customers last payment date within Stripe & PayPal apis? I need that because, If user pays for 1 month forward and then cancels the subscription their account would be canceled right away and they will lose access for the month which he already payed for.

I want to let them use website service for 1 month and then cancel the subscription.

I searched last payment date in subscription details - https://stripe.com/docs/api?lang=php#retrieve_subscription

But I can't find that, please, help me to find this for stripe and paypal if possible

Thanks,

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 高德地图点聚合中Marker的位置无法实时更新
    • ¥15 DIFY API Endpoint 问题。
    • ¥20 sub地址DHCP问题
    • ¥15 delta降尺度计算的一些细节,有偿
    • ¥15 Arduino红外遥控代码有问题
    • ¥15 数值计算离散正交多项式
    • ¥30 数值计算均差系数编程
    • ¥15 redis-full-check比较 两个集群的数据出错
    • ¥15 Matlab编程问题
    • ¥15 训练的多模态特征融合模型准确度很低怎么办