#User 1

1 messages · Page 1 of 1 (latest)

acoustic pierBOT
fickle elk
#

Hi, you do not need to write in the main channel. You can ask a quesiton on the same thread.

hard solstice
fickle elk
#

That is fine.

hard solstice
fickle elk
#

Yeap, can you share the specific payment link id so I can show you where it is?

hard solstice
fickle elk
hard solstice
#

This is the subscription delete request:
req_FW7hPcsg6Fhufg

#

This is the payment checkout request:
req_tQ2t6zXnE1qm9D

fickle elk
#

I see you're trying to get this information from the Subscription deletion request. That is not possible as the customer_fiels parameter belong to the Payment Links object which relies on Checkout Sessions object under the hood.

hard solstice
#

Would it be better to associate the information with the customer somehow?

fickle elk
hard solstice
#

Or at least, the information stored inside of them?

fickle elk
hard solstice
fickle elk
#

This is what I would recommend and also clarifying myself.

1/ You'd create the Payment Link, and under the hood Stripe uses Checkout Session and stores that custom field on that object .
2/ Then, you'd want to listen to checkout.session.completed event: https://stripe.com/docs/api/events/types#event_types-checkout.session.completed and attain the custom fields that your customer provided.
3/ You then, you'd want to add this as a metedata on the Subscription object by updating the Subscription: https://stripe.com/docs/api/subscriptions/update#update_subscription-metadata.

hard solstice
#

Okay sounds good. Another clarifying question. When a user fails to pay for the subscription, or cancels their subscription, I should be able to get that metadata from customer.subscription.deleted, correct?

fickle elk
#

Yes, that is correct.

hard solstice
#

Also, when someone buys my monthly subscription, will they be charged the monthly price immediately after buying and then again every month after that?

fickle elk
#

Are you able to clarify what you mean with this?

Also, when someone buys my monthly subscription, will they be charged the monthly price immediately after buying and then again every month after that?

Yes, that is correct.

hard solstice
fickle elk