#jaswanth9034
1 messages ยท Page 1 of 1 (latest)
Hi there, is this question about changing the PayementIntent amount based on the payment method?
Exactly
https://stripe.com/docs/payments/accept-a-payment-deferred?type=payment you can use this deferred flow to create a paymentIntent after collecting the payment details
Also i have tried to modify application_fee, i was getting this error
stripe.error.InvalidRequestError: Request req_tRhiKWqxf7dgIa: Some of the parameters you provided (application_fee_amount) cannot be used when modifying a PaymentIntent that was created by an invoice. You can try again without those parameters.
That's because the PaymentIntent was created by the invoice.
Already paymentintent is created with invoice
How do i add stripe fees in that case ?!
I don't think that's possible because you won't know what payment method that you customer would use when creating an invoice, and you can't modify the invoice once it's finalized.
yes correct
Unless you ask the customer to choose a payment method first, and then creat an invoice for that payment method with the right amount.
there should be some solution for creating an invoice and then applying additional charges based on the payment method selected by customer.
I cannot restrict my customer to single payment method when he is having options.
Hello are you there?
๐ Taking over this thread, catching up now
Once the invoice is created and finalised, it's not possible to update the Invoice to include new charges
Payment method has to be collected first and use it to compute the Stripe fee before creating an invoice
But the charges will be different for different payment methods, how can i restrict my customer to particular payment method
Normally, while doing payments we see the stripe fees on the last window where you select the payment method.
Hi @supple turtle https://stripe.com/docs/api/invoices/create?lang=node#create_invoice-payment_settings-payment_method_types you can set payment_method_types here
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.