#krishnaKanabar-subscription

1 messages ยท Page 1 of 1 (latest)

red hare
#

Hi

#

You will receive webhook events

#

invoice.created for each Invoice generated per a Subscription renewal

blazing nova
#

But that webhook will be created after 1 month right

#

How to test for next month

red hare
#

You can use Test Clock to advance the time

blazing nova
#

If I do advance time webhook will be called for next month right?

red hare
#

yes

blazing nova
#

okay

#

let me try

#

subscriptio - id

#

sub_1LXf8HSJsXH2azWQMOmNnmON

#

why it's status is past due?

#

I have used test clock for this subscription

#

@red hare ?

red hare
#

Hi, looking

#

This Invoice's payment failed. Did you provide a chargeable PaymentMethod for the customer?

blazing nova
#

yes I have used 4242** card number as payment method for my customer

#

cus_MGBUT6rcbmlkOE

#

I am testing so used 4242 card number

red hare
#

But you don't set the card as the default payment method

#

invoice_settings.default_payment_method

blazing nova
#

okay

#

how to get payment method from event object?

red hare
#

Depends on which event

#

What event are you looking at?

blazing nova
#

evt_1LXf8JSJsXH2azWQdYFOLYMP

#

This is the event id

red hare
#

That Invoice doesn't have a PaymentMethod, because it was free (โ‚น0.00)

gaunt ridgeBOT
#

This thread has been archived. If you need help with anything else please ask in #dev-help or contact Stripe Support: https://support.stripe.com/contact

spice terrace
#

@blazing nova ๐Ÿ‘‹

blazing nova
#

In dashboard , If I go to my customer there is payment method associated with him

#

now you said i need to make it default_payment_method right

#

so which param shows payment method of cutsomer that i can see in dashboard

spice terrace
#

That UI just lists all PMs attached to that customer