条纹 API PHP。在 subscription_id 之前获取所有订阅付款

Stripe API PHP. Get all payments of subscription by subscription_id

我从 Clickfunnels 收到一个挂钩,其中包含 "subscription_id":"sub_AnDOcr3inf0Qfx"。如何使用此数据获得此订阅的所有付款?非常感谢您的帮助。

您可以 list all Invoices for the given Customer and Subscription and each of those will have a charge property that you can then retrieve (or you could just expand it 拨打 'list Invoices' API 电话。