#feminaagravat_39821
1 messages · Page 1 of 1 (latest)
Hello
When you say "on checkout page" do you mean you use Stripe Checkout or you have a custom form?
Yes I am using Stripe Checkout
Great and are you collecting this promo code from the customer prior to creating the Checkout Session or you want them to input it during the Checkout Session?
I am collecting prior to checkout . We have promocode facility on our websire
Okay then you want to pass it to discounts when you create your Checkout Session (https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-discounts)
You'll need to align your own promo codes with promo codes or coupons within Stripe
I really need a lot of help! I'm creating a Node.js application with Stripe, in which I want to be able to process payments for invoices or payment links. For example, let's say I want to make an online purchase on a specific website, and it generates a payment code for me. I want to use Stripe in my application to make the payment for this code, and I want Stripe to understand where the code is coming from and complete the purchase.
@tawny wigeon I created your own thread for us to discuss your question.
Ok!! I would like to know if stripe processes third-party payment links? Because I'm creating an application using stripe, which processes third-party payment links, and makes the payment
But In our promocode it add discount to all items,
You only want it to discount certain items?
yes
Is there a way that current year it's discounted value and from next year the item price will be different.
On our website we have customized promocode
So when you create coupons you can use applies_to to have them only apply to certain Products (https://stripe.com/docs/api/coupons/create#create_coupon-applies_to) and/or you can use duration + duration_in_months (https://stripe.com/docs/api/coupons/create#create_coupon-duration) to determine how long the coupon will apply
But I think this will create my website slow as i have to run loop to create discount and and then assign to product
You would have already done this previously when you gave out the promo code, no?
no
👋 hopping in here since bismarck needs to head out
The expectation here is that you would create the Discount/Promotion code way ahead of time and share it to your customers. It's a one-time thing you'd set up, not before every checkout session
Hello
Hello - did you still need help?
yes
How can i set that discount amout should not be applied on next invoice/subscription
Is there any other way If i don't want to create discount then ?
You'd update the Subscription and remove the discount from it if you don't want it to be applied to the next invoice
Ok (y)
When I can main subscription then will it automatically delete the subscription items ?
I'm not sure what you mean by that
I have created subscription so it provide me subscription id it has subscription items which has separate item ids
When I cancel the subscription will it automatically delete the subscription items ?
subscription items means product.
Yes, when you cancel a Subsciprtion it cancels the subscription items as well