#ayeshaikh_7
1 messages · Page 1 of 1 (latest)
hello! that's not possible without using a Checkout Session.
is there any other workaround for this?
depends on what you mean by workaround - for example, you could implement your own logic to create a coupon, calculate the total to charge, and simply use Stripe to collect the final amount
i also want this applied coupon to reflect in stripe invoices
can I use subscriptions to work like one time payment?
ah okay, now that you mentioned invoices, you can also use one-off invoices
we currently have subscription on our platform for which we use payment elements, I want to reuse this for one time payments
one off invoices would be sent to customers & then they 'll pay through hosted invoice page. is that correct?
you can send the invoice to the customer. I think you should be able to load the invoice's underlying PaymentIntent using the Payment Element also, but you'll need to test it out since I don't recall if it's possible off the top of my head right now
okay thanks, I'll test it out. also here will invoice's underlying paymentIntent support coupon?
you can pass in the coupon when creating the Invoice : https://stripe.com/docs/api/invoices/create#create_invoice-discounts
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
the underlying PaymentIntent will reflect the amount after accounting for the coupon
got it
also anything around this? can this be done?
no, Subscriptions are recurring payments. They're not meant for one off payments.
Also, is there a reason why you don't want to use Checkout Sessions for one off payments?
because of this & some additional customization requirements
how will ACH work in this case?
i suggest you try it out
I don't want to send invoice to customer to pay...I want to auto charge them & then send the paid invoice to them.
I tried creating an invoice and paymentIntent. I can't use unverified ACH account to charge customer
okay, what it sounds like is that you need to collect the PaymentMethod before hand and then charge the customer later. You can try taking a look at this guide : https://stripe.com/docs/payments/save-and-reuse
you would need to implement the logic for coupons on your own application, do the calculation, and determine the final amount to charge the customer
can't use stripe coupons then?
In what context?
This
we currently have subscription on our platform for which we use payment elements, I want to reuse this for one time payments with stripe coupons
Using Payment Intents directly?
Payment intents don't support coupons
I want to do one time payment with stripe coupons
Then you can use an Invoice directly, or Stripe Checkout
I don't want to send invoice to customer to pay...I want to auto charge them & then send the paid invoice to them.
Then use Checkout
Also this
I'm not sure what else you want me to say. If you want to use a Coupon with a one-time payment then your only options are Checkout or Invoicing.
You can use Invoicing to automatically charge the customer, assuming you have a saved payment method for them
so this can be done
I think so, but have you tried it?
trying
also, why payment intents don't support coupons?
thanks! I'll try that out and see
They just don't unfortunately. We were working on an Orders API to enable this, but work on that has stopped
okay. so can't expect this to work in near future too 😦