#atul

1 messages ยท Page 1 of 1 (latest)

cobalt spindleBOT
undone moss
#

๐Ÿ‘‹ Thanks for reaching out
Could you please share more details about what you are trying to achieve ?

floral kestrel
#

I have to handle payment falure

#

I want to listen to subscription.updated event

#

I need confirmation what would be the status when payment fails

undone moss
floral kestrel
#

If payment fails because of a card error, such as a decline, the status of the PaymentIntent is requires_payment_method and the subscription is incomplete

#

This is the line from stripe docs only

#

which one is correct ??

#

Your docs is quite confussing

#

There is no exact solution

#

PLease let me know the possible work around

#

Somewhere in docs it mentioned to listen to subscription.updated event
at other place its mentioned to listen to invoice.payment_failed

undone moss
floral kestrel
#

ok,

#

If subscription is created, and payment is not made even once subscription status will chnage to incomplet after unsuccessful payment

#

I have subscription model

#

I use stripe's checkout to create subscription, so sbscription is created only after successful payment only

#

Now, I need to maintain the reason for failure of automatic payment failure

#

Is it enough to listen to invoice.payment_failure

floral kestrel
#

Thankks

#

Do we have any option to send dummy invoice.payment_failed event

undone moss
floral kestrel
#

Thanks man

#

can we attach test clock to any customer using API

earnest pebble
#

No, you need to create a new Customer object

floral kestrel
#

My requirement is I want to create customer with test clock enabled

#

ok

#

new invoice will be generated at end of every billing cycle

#

suppose payment is failed so subscription will go to past_due,
Suppose 2 billing cycle is passed away and no payment is recieved from customer, In that scenario new invoice will be generated every month ??

earnest pebble
floral kestrel
#

I have recieve invoice.payment_failed event, where can i find the reason for payment failure

#

If all retries for a payment fail than i have setting to mark subscription as unpaid

earnest pebble
earnest pebble