#smoke

1 messages · Page 1 of 1 (latest)

scenic berryBOT
lavish saddle
#

Hello there

#

You would typically retrieve this from the line items either from an invoice preview or post-payment. What integration are you using?

magic garden
#

working with your api in Go

#

this is for subscriptions by the way, not sure if that matters

lavish saddle
magic garden
#

Hmm what would be the correct way to do this, assuming we aren’t looking at an invoice for any specific customer. We want to show the price to a customer including a discount but before creating a checkout session. We haven’t been managing invoices manually so in some cases these customers may not even have any previous or upcoming invoices

lavish saddle
#

Yeah in that case you would want to preview a new Subscription with the Product/Price and the discount.

magic garden
#

Specifically, we have existing members on our website referred from another promotion and want to show them the discounted price they would receive before they click anything or go to the stripe checkout page

lavish saddle
#

We also will display the proper amount in the Checkout Session... but that is after the redirect (obviously)

lavish saddle
magic garden
#

Ok yup see the preview stuff in there. Thank you!