#Jack_chai
1 messages · Page 1 of 1 (latest)
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 ?
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?
we are doing subscription prebilling
we first update the current subscription with promocode, and then change prebilling[iterations]
Okie, I meant you can test in Test mode and use Test Clock: https://stripe.com/docs/billing/testing/test-clocks and see, when the time comes, will the Subscription use the Discount as the Upcoming Invoice API showed
we are doing prebilling subscription, we can charge user in advance
can i give u example request ?
Yes that would help, thanks.
I am looking at https://dashboard.stripe.com/test/logs/req_oHoiZTNklyWrmP
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
When you say "prebilling" is that a specific feature on Stripe side or it's how you define your business?
on stripe feature, (not official yet)
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
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
There are events you can listen to in this page: https://stripe.com/docs/js/element/events/on_change?type=paymentElement ie this on_change
and check from 'complete' atrribute?
Yep!