#min.k4501

1 messages · Page 1 of 1 (latest)

crude prawnBOT
sage sun
red canyon
#

Let's take this a step further: how do we know that the coupon was redeemed in the webhooks that are delivered when the subscription and one-time payment are completed?

sage sun
#

it's the same answer

#

when you receive the webhook you can call the CheckoutSession Retrieve API, expand the total_details.breakdown field, and inspect the returned JSON from the API

red canyon
#

But for subscriptions, coupons can be applied multiple times. Can I check from the invoice.paid event if a coupon was applied to a payment generated by a subscription?

sage sun