#zelda.zonk

1 messages · Page 1 of 1 (latest)

wet flaxBOT
copper thunder
#

Hi the coupon will be applied on the invoice generated by the subscription.

silk mist
#

lets say i have 1 subscription product, and 2 t-shirts as invoice items. the total is $50 for first invoice and every subsequent bill only has subscription so $20. if u use a once coupon, will couon be applied to total $50 on first invoice

copper thunder
#

If the coupon's duration is once , yes the discount will be applied to the first invoice (i.e., $50), and not the subsequent invoices.

silk mist
#

ok great, and if its forever, it will be on all invoices for subscription, and many months (x) , for x months? I just wanetd to check the invoice items get discount applied.

#

im really struggling on how to implement coupons. as i need a custom checkout flow (cant use stripe checkout) and i need ability to have coupons for both payments and subsriptions. How do you people handle this? Local coupon for payment, coupons for subcriptions, but you dont know how a user will use the coupon though. you need one coupon code that handles both payments and subscriptions.

copper thunder
#

Can you tell me what you want to achieve with coupon?

silk mist
#

say i issue at 10% off discount, user needs flexibility to use it on payment checkout, so they buy say 3 t-shirts, or subscription checkout, they signup to 12 month plan. I need them to be able to use that coupon in both instances. Creating coupon system locally and handling that logic in custom checkout is fine, its when subcriptions come into it gets complex as stripe subscriptions should use stripe coupons.

copper thunder
#

I still struggle to understand your requirement

silk mist
#

how can user use the same coupon/promo code for both one-time payments and subscriptions in a custom checkout flow? Say you have a site , your a green grocer, you sell food items but also food boxes that are delivered weekly. a user could come on site and just buy regular food items, milk, cheese etc. or they could subscribe to a food box. how can i give this user a coupon code they can use with buying just milk and cheese (one-time payment) or food box (subscription) does that make sense?

#

imagine a 10% coupon for first time purchases as an example.

copper thunder
#

1/ Your customer can't use coupon directly, they can only use promo code during checkout.
2/ You can generate different promo codes for different purchase (i.e., one promo code for milk and cheese and the other for subscription)

silk mist
#

sorry i meant to say promo code. as its a customer facing code.

#

i cant generate different promo codes in this example, as i dont know ahead of time if a user will buy milk and cheese or subscribe to food box, i need one promo code to work for both checkouts. lets say the coupon is 15% off for first time buyers. and its promo code is 15OFF.

#

so the question is, if i cant use stripe checkout, how can i implement coupon system for both payments and subscriptions. how are other people handling this?

copper thunder
#

Why your customer can't use the same promo code for both? It's entirely up to you to decide what products that the promo code can be applied to.

silk mist
#

because if its a subscription, i should be using a stripe coupon code no? if it's a payment now what do i use? i cant use a stripe coupon on a paymentIntent.

#

again: Creating coupon system locally and handling that logic in custom checkout is fine whens its a paymentIntent, its when subcriptions come into it gets complex as stripe subscriptions should use stripe coupons.

#

do you understand what my issue is?

copper thunder
#

No I don't really understand you but I believe you have a misunderstanding here, you customer can also use a promo code even in a subscription mode checkout page

silk mist
#

yes i know i can use a stripe promo code on susbcription, but what about payments?

copper thunder
#

you mean payment mode checkout? Yes you can use promo code as well

silk mist
#

i said before im not using stripe checkout

#

im using custom checkout with payment elements

#

and stripe docs says u cant use stripe coupons with payment elements

#

for one-time payments

copper thunder
#

Then I don't see Stripe coupon or promo code relevant here.

#

You want to build you own coupon/promo code system?

silk mist
#

from before: im really struggling on how to implement coupons. as i need a custom checkout flow (cant use stripe checkout) and i need ability to have coupons for both payments and subsriptions. How do you people handle this? Local coupon system for payment, coupons for subcriptions, but you dont know how a user will use the coupon though. you need one coupon code that handles both payments and subscriptions.

copper thunder
#

No. I don't have a solution to use promo code for Stripe integration that is not using checkout.

#

you can either use checkout, or build you own promo code system if you need.

silk mist
#

so do every merchant that uses stripe that wants coupons for both payment and subscriptions have to use stripe checkout then? they all cant use custom checkout with payment elements?

silk mist
copper thunder
#

You can create a coupon and apply it to the subscription

silk mist
#

😢 this is really frustrating

#

ill give you a use case

copper thunder
#

If you can be more clear in describing exactly what you want to achieve, it'll be very helpful for me to provide you the right solution in shortest possible time.

silk mist
#

you saying i have to create my own promo code system fine. I create a 15% off discount with promo code 15OFF in my system now user buys milk and cheese uses promo code, i calculate amount for paymentIntent based on this promo code. all good so far yes? user completes payment with 15% off thier milk and cheese correct?

copper thunder
#

Hold on a sec

#

Are we still talking about subscription or one-time payment?

silk mist
#

one-time payment for milk and cheese

copper thunder
#

Wait

#

please don't switch topic in the middle of the discussion, it makes extremly hard for me to understand you

#

Let's continue the discussion of subscription until we are clear

silk mist
#

sorry but im using the same logic from my example before, green grocer sells milk and cheese and subscription food box.

#

use case 2 will be subcription, ill do that after you confirm you understood user case 1 on milk and cheese purchase.

#

can you confirm you follow this use case: I create a 15% off discount with promo code 15OFF in my system now user buys milk and cheese uses promo code, i calculate amount for paymentIntent based on this promo code. all good so far yes? user completes payment with 15% off thier milk and cheese correct?

#

pls let me know you understand before i move on to use case 2, a subscription food box

copper thunder
#

I'd prefer we finish the discussion about subscription before moving on to the one-time payment.

silk mist
#

ok fine. use case 2. user checkouts (using payment element) with subscription foodbox , now this is where its confusing, how can i use the 15OFF promo code i created in my own system?

copper thunder
#

So do you have any question on the API reference doc that I sent earlier?

silk mist
#

i dont have any questions about api right now, im concerned with how i build my own coupon system like you suggested and how i can use it with stripe subcriptions

#

they key to remember i want to give user one promo code 15OFF to use with one-time payments or subscriptions.

copper thunder
#

I've already shared you how to apply coupon to a subscription. How to map the Stripe coupon and your own promo code in the custom checkout is entirely up to you.

silk mist
#

can i please talk to another developer?

#

im not sure you understand my use cases

#

How to map the Stripe coupon and your own promo code in the custom checkout is entirely up to you thats what i was asking, how do i do this, how are other people doing this.

#

they way i see it, i am duplicating the coupon. one in my system for one-time payments and one in stripe for subscriptions. how do you then track redemptions. its makes no sense

copper thunder
#

I don't know how other people do that but I believe this is a problem that you need to solve by yourself.

silk mist
#

i find it hard to believe other merhants havent had this issue too.

#

are they duplicating thier coupon codes?

copper thunder
#

I won't be able to tell you how other user implement their solutions. Now we discussed the susbcritpion, shall we proceed with the one-time payment?

silk mist
#

sure, tell me about the one-time payment

copper thunder
silk mist
#

ok so exactly what i said earlier already. "I create a 15% off discount with promo code 15OFF in my system now user buys milk and cheese uses promo code, i calculate amount for paymentIntent based on this promo code. "

copper thunder
#

Sounds good, anything else I can help with?

silk mist
#

in your example, "Once your system finish calculating the discount based on the promo code that your customer enters, you can then update the PaymentIntent's amount " --- just to clarify this is a custom promo code created within my own system, you didnt clarify.

#

and coupon code also would be custom in my system, nothing to do with stripe correct. in your example i mean

copper thunder
#

it really depends on how your system accept the promo code, and I believe you know this better than anyone else.

silk mist
#

i just want to make sure we are on same page

#

i just want to you to state in your example, you were not referring to any stripe coupons or promo codes. so we are clear.

copper thunder
#

I'm glad that you are clear! Thank you for contacting us in Discord! Feel free to drop by anytime when you need help.

#

Hi @silk mist do you have a follow-up question?

silk mist
#

thanks

#

ok so we left off with me asking you in your last example for one-time payments, when you were referring to promo codes, i just want you to state in your example, you were not referring to any stripe coupons or promo codes. so we are clear.

#

since we are talking about me creating my own coupon system, i think its wise when referring ti coupon or promo code in our examples to state whether its a stripe coupon or promo code, just so its clear.

#

less confusion you kow

copper thunder
#

Is there any follow-up qustion that I can help with?

silk mist
#

i just asked it

copper thunder
#

What's the question?

silk mist
#

ok so we left off with me asking you in your last example for one-time payments, when you were referring to promo codes, i just want you to state in your example, you were not referring to any stripe coupons or promo codes.??????? so we are clear.

copper thunder
#

Is this about how your system consume the promo codes?

silk mist
#

yes for one-time payments, in your example you created

copper thunder
#

If it's your system, then as I mentioned before, you know it better than anyone else.

silk mist
#

im asking about ur example

#

pls

#

just tell me

copper thunder
#

I can only help with question related to Stripe APIs or products, and I'm unable to answer on behalf of any other users, including you.

silk mist
#

wow, unbelievable, you give me an example you made and then wont clarify to help me understand it.

#

this is YOUR example "Once your system finish calculating the discount based on the promo code that your customer enters, you can then update the PaymentIntent's amount " all i want to know is when you said promo code, you were NOT referring to a stripe promo code, thats all i want to know.