#zelda.zonk
1 messages · Page 1 of 1 (latest)
Hi the coupon will be applied on the invoice generated by the subscription.
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
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.
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.
Can you tell me what you want to achieve with coupon?
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.
I still struggle to understand your requirement
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.
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)
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?
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.
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?
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
yes i know i can use a stripe promo code on susbcription, but what about payments?
you mean payment mode checkout? Yes you can use promo code as well
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
Then I don't see Stripe coupon or promo code relevant here.
You want to build you own coupon/promo code system?
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.
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.
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?
thats what im asking, if i have to build my own promo system how can I apply discounts to subcriptions?? Can you please give me an example of how i would apply custom app level discount to subscription?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
You can create a coupon and apply it to the subscription
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.
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?
one-time payment for milk and cheese
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
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
I'd prefer we finish the discussion about subscription before moving on to the one-time payment.
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?
So do you have any question on the API reference doc that I sent earlier?
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.
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.
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
I don't know how other people do that but I believe this is a problem that you need to solve by yourself.
i find it hard to believe other merhants havent had this issue too.
are they duplicating thier coupon codes?
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?
sure, tell me about the one-time payment
sure thing. Once your system finish calculating the discount based on the promo code that your customer enters, you can then update the PaymentIntent's amount (https://stripe.com/docs/api/payment_intents/update#update_payment_intent-amount). Remember to call elements.fetchUpdates() to fetches the updates of the associated PaymentIntent (https://stripe.com/docs/js/elements_object/fetch_updates)
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. "
Sounds good, anything else I can help with?
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
it really depends on how your system accept the promo code, and I believe you know this better than anyone else.
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.
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?
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
Is there any follow-up qustion that I can help with?
i just asked it
What's the question?
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.
Is this about how your system consume the promo codes?
yes for one-time payments, in your example you created
If it's your system, then as I mentioned before, you know it better than anyone else.
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.
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.