#sumit-subscription-paymentintent

1 messages · Page 1 of 1 (latest)

lone krakenBOT
rapid jewel
#

sumit-subscription-paymentintent

#

@safe reef A Subscription will create an Invoice for each "cycle". And an Invoice will create a PaymentIntent if a payment is needed

#

so you go Subscription <-> Invoice <-> PaymentIntent

safe reef
#

so for revenue calculation at my own end... shall i use invoice or payment intent?

rapid jewel
#

I would personally use Invoices (since you can have 100% off coupon, credit from previous Invoices, etc.)

safe reef
#

so will i get the all the data for automatic payments done also with invoice.payment_succeeded event ?

rapid jewel
#

invoice.paid is the Event to listen to

safe reef
#

it will cover automatic payments also right ?

rapid jewel
#

yes

#

mostly invoice.payment_succeeded is the old Event, we should remove it we just haven't finished that work. invoice.paid is better (it also fires for $0 Invoices for example)

safe reef
#

will i be able to get refunds also with this event ?

#

i mean through invoices events

rapid jewel
#

no, Refunds are separate objects in our API

safe reef
#

ok @rapid jewel thanks for the help... hope u have a good day
btw can you keep this thread here only for my personal future reference?

rapid jewel
#

I will archive the thread but it won't be deleted so you can still search for it in search