#Steven Gauerke - Elements Coupon box
1 messages · Page 1 of 1 (latest)
I guess there isnt a way?
Unfortunately I don't think Elements has a coupon code option.
I can't see a way to do that with our APIs unfortunately
You can do your own coupon/promo code logic
ok so let me as you this then.....if I have a coupon set specifically for a customer, will it auto apply?
Is this for one time payments or subscriptions?
this instance is for a 1 time purchase and in my development would more than likely be for just the 1 time purchases but the product would vary. I do have some subscription options but more than likely we wouldnt do a promo on the subscriptions
so basically we are doing a PPV live stream. My thought is if they had trouble watching or the stream went down, we would just give them a one time coupon for the next purchase. But they would need a way to enter that into the payment form.
Gotcha. Unfortunately I don't think our API supports coupons for one time payments through PaymentIntents. Checkout supports coupons for one time payments but unfortunately PaymentIntents themselves don't do that.
can we embed checkout in a modal? or iframe?
Unfortunately not, Checkout does not support iframes. You can have Checkout redirect back to your site after the purchase though if that helps
I am also trying to think if there is anything you can do while still using Elements.
yeah I can possibly have my own coupon code field but I'm not sure if I can pass that with elements
ok can we see about adding that as a feature request? I guess payment intents, you have to submit a $ amount. Can we modify that $ amount ahead of time?
Yes, you can also change the payment intent amount if you do your own promo code checking
And yes, I will put in a feature request for this
ok so then I with payment intent, and the elements I can't purchase a specific product?
I mean it just charges a card?
Yes, PaymentIntents just have an amount. At the moment they don't directly support our Products or Prices APIs
ok. Yeah so hosted checkout page it is.
Yeah that sounds like it will likely be easier.
Any immediate questions about the pre-hosted Checkout page at the moment?
i have question about the success url. do we need to create a new thread?
Let's keep it in this thread
ok so if I create a session, will it return a url I can redirect to? I wanted to create the session via XHR and then open a new window from whats returned.
If I understand you correctly, you will actually want to redirect to the Checkout Session's url which will point to the stripe hosted page https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-url
yes
The success_url is where the user will be directed after our hosted page once they have completed their payment. You can actually use it to identify the order it is a part of if you would like https://stripe.com/docs/payments/checkout/custom-success-page
Did that first part about the url answer your question? Or did I not quite read it right?
i found it
I wanted before payment. Where do I send them to
theres no coupon code on those pages either
duh i forgot to set allow_promo_codes to true
Glad you have it working! I forget that field all the time myself
now this is not a programming issue so maybe you can tell me how to fix this though.....my previous purchases on other accounts with my email has my old phone number so it recognizes me in the stripe system and wants to send a code to that old number. how can I change that?
Unfortunately that's something I think you'll need to talk to support about. We can't do too much with accounts here.
https://support.stripe.com/contact/email
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
is there any way when using a webhook, to know which site its being called for? For example, I have a coach side to this platform who pays a subscription, but can all be a spectator. which has different products and subscriptions. I dont want them to get mixed up