#Jack_chai

1 messages · Page 1 of 1 (latest)

nocturne cryptBOT
keen widget
#

i thought that if we set discount code Once and when we call /v1/invoices/upcoming with that discount on the subscription Id already applied promocode (promocdoe bound to that discount code) will not provide the discount

#

but the upcoming invoice api always shows the discount amount

my use case is that, we allow user to enter promocode and show the discount (custom online subscription checkout)

the issue is that we show the discount on the frontend but when we actually apply the promocode to the subscription, it didn't give any discount

#

any suggestion, like we can use promocode with upcoming invoice ?

tiny goblet
#

i thought that if we set discount code Once and when we call /v1/invoices/upcoming with that discount on the subscription Id already applied promocode (promocdoe bound to that discount code) will not provide the discount
I am curious if you use test clock and advance the time to see the actual Subscription, would you see it is discounted?

keen widget
#

we are doing subscription prebilling

#

we first update the current subscription with promocode, and then change prebilling[iterations]

tiny goblet
keen widget
#

we are doing prebilling subscription, we can charge user in advance

#

can i give u example request ?

tiny goblet
#

Yes that would help, thanks.

tiny goblet
#

When you say "prebilling" is that a specific feature on Stripe side or it's how you define your business?

keen widget
#

on stripe feature, (not official yet)

tiny goblet
#

If that's the case, please initialize an email thread and we are happy to help you over there. This is a public forum and we can't discuss a beta feature

#

Sorry for the inconvenience

keen widget
#

oki, will do that

#

another quesiton abt stripe element

#

we use payment element to allow user to enter card details, what the proper way to know if that element doesn't have any error or blank input

tiny goblet
keen widget
#

and check from 'complete' atrribute?

tiny goblet
#

Yep!