#Steven Gauerke - Elements Coupon box

1 messages · Page 1 of 1 (latest)

lyric nova
odd valve
#

I guess there isnt a way?

lyric nova
#

Unfortunately I don't think Elements has a coupon code option.

#

I can't see a way to do that with our APIs unfortunately

odd valve
#

I dont want to take them off my site

#

wow

lyric nova
#

You can do your own coupon/promo code logic

odd valve
#

ok so let me as you this then.....if I have a coupon set specifically for a customer, will it auto apply?

lyric nova
#

Is this for one time payments or subscriptions?

odd valve
#

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.

lyric nova
#

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.

odd valve
#

can we embed checkout in a modal? or iframe?

lyric nova
#

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.

odd valve
#

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?

lyric nova
#

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

odd valve
#

ok so then I with payment intent, and the elements I can't purchase a specific product?

#

I mean it just charges a card?

lyric nova
#

Yes, PaymentIntents just have an amount. At the moment they don't directly support our Products or Prices APIs

odd valve
#

ok. Yeah so hosted checkout page it is.

lyric nova
#

Yeah that sounds like it will likely be easier.

#

Any immediate questions about the pre-hosted Checkout page at the moment?

odd valve
#

i have question about the success url. do we need to create a new thread?

lyric nova
#

Let's keep it in this thread

odd valve
#

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.

lyric nova
odd valve
#

yes

lyric nova
#

Did that first part about the url answer your question? Or did I not quite read it right?

odd valve
#

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

lyric nova
#

Glad you have it working! I forget that field all the time myself

odd valve
#

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?

autumn lichen
#

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

odd valve
#

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

autumn lichen
#

We advice creating different Stripe accounts for different projects for just that reason.

#

The only other thing I could think of would be to append metadata to the various objects that identifies the site it was created on.

odd valve
#

it is same project just different parts of the site to log in to.

#

I'll get creative