#jaswanth9034

1 messages ยท Page 1 of 1 (latest)

stuck coveBOT
manic plover
#

Hi there, is this question about changing the PayementIntent amount based on the payment method?

supple turtle
#

Exactly

manic plover
supple turtle
#

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.

manic plover
#

That's because the PaymentIntent was created by the invoice.

supple turtle
#

Already paymentintent is created with invoice

#

How do i add stripe fees in that case ?!

manic plover
#

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.

supple turtle
#

yes correct

manic plover
#

Unless you ask the customer to choose a payment method first, and then creat an invoice for that payment method with the right amount.

supple turtle
#

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.

stuck coveBOT
supple turtle
#

Hello are you there?

zenith yarrow
#

๐Ÿ‘‹ 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

supple turtle
#

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.

manic plover