0
StripeCharge charge=Stripe.Mapper<StripeCharge>.MapFromJson(evtData.Object.ToString());

我想从这个 Stripe 收费对象中获取 subscriptionId?如何获取?提前致谢。

4

1 回答 1

0

The charge has an invoice property that contains the identifier of the invoice corresponding to the charge if any. If it's set, you can then retrieve the invoice via the API. That invoice would have the subscription property that would be the identifier of the subscription associated with that invoice and that charge.

于 2017-03-30T13:06:57.507 回答