#arvindsinghu
1 messages ยท Page 1 of 1 (latest)
๐ happy to help
you just want the first payment? you can always listen to invoice.paid
yes, but i want to target something with the first payment only
what if a customer make a monthly payment
you can check this field on the Invoice object https://stripe.com/docs/api/invoices/object#invoice_object-billing_reason
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
subscription_create
I checked that but the text is same for the first and all other payments
"billing_reason": "subscription_cycle",
the first one is subscription_create
yes but that invoice is for the 0$, we give them trial ๐ฆ
in that case you'd have to build your own logic to keep track of that
do you mean via API?
yup
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I want to know something like this
for a customer
total spend by a specific custimer
yes you would have to list all PaymentIntents and sum the amount https://stripe.com/docs/api/payment_intents/object#payment_intent_object-amount
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.