#corollamango74

1 messages · Page 1 of 1 (latest)

frank grottoBOT
edgy coral
#

I thought it would trigger my checkout.session.completed webhook again, but it didn’t.
No, it would not. The session was already completed.

Instead, you likely want to listen for invoice.paid but it depends on what you're trying to do.

#

if the payment does not go through, I created a invoice.payment_failed webhook. Will this webhook trigger if a subscriber’s payment does not go through?
Yes

sudden escarp
edgy coral
#

why? What are you trying to do?

#

You won't get the same object

sudden escarp
#

It is for a membership program, so I would like to receive the start and end date of the new month of membership, the subscription Id, payment status, customer id, amount paid, and the item name

#

If I receive the invoice id from the invoice.paid webhook, can I receive all of the above values from an API request to Retrieve an Invoice?

edgy coral
#

You can get most of that from invoice.paid event, you should test this and ensure you've got what you need

#

For item name, depending on exactly what you want you may need to retrieve the product explicitly

sudden escarp
#

Awesome, thank you! I'll try it. I have one more question.

I would like to create a 14 day free trial that is linked to the checkout session and subscription I mentioned before.

What would be the best way to do this?

edgy coral
frank grottoBOT
sudden escarp
#

I completely missed that. Thanks again!