#Debjeet-payment-links-custom-amount

1 messages ยท Page 1 of 1 (latest)

inner yarrowBOT
solar light
#

Hello ๐Ÿ‘‹
Can you expand a little bit more on what your integration flow currently looks like?
You should be able to accept input for the amount from your customer and then create the PaymentIntent accordingly?

shrewd sonnet
#

right now I am creating product from the stripe dashboard then getting the link and when users click on pay now button it redirecting to the stripe payment.But here I am doing it manually everytime.

I don't want this I want that users can enter the amount they want in the front end then after pressing the pla button it will redirect to the stripe payment.

I have already used paymentIntent but unfortunately, it does not work for FLutter web.

solar light
#

When you say redirect to Stripe Payment, do you mean Stripe Checkout?

shrewd sonnet
#

yes

#

i paste this link

solar light
#

Oh you mean Payment Links

#

Gotcha.

solar light
#

As far as I know, Payment Links have to be linked to a product
and unless you create them programmatically (by calling the API), I don't think you'd be able to allow your users to put in the price for them.

shrewd sonnet
#

this is my requirement that user can enter the amount they want to add to wallet.

#

basically we take user money to our bank account and it will be called wallet

#

now you got the scenrio

solar light
shrewd sonnet
#

wait let me check

solar light
#

Debjeet-payment-links-custom-amount

shrewd sonnet
#

this works but I have to create payment links everytime.
I have to work with payment intent only

solar light
#

this works but I have to create payment links everytime.
This isn't a Payment Link integration though.
The guide I shared above creates a new Checkout session which is different than a Payment Link

#

Hey can I alter the URL https://buy.stripe.com/test_8wM17y4Lu0codos3ch
like this is the payment URL and can I add arguments in the links after the end of the link like

https://buy.stripe.com/test_8wM17y4Lu0codos3ch/unit_amount=$1000
like this I have added unit_amount on link
No, unfortunately that's not how this works.

Your only two options are
1/ Either use Stripe checkout with pay-what-you-want model
https://stripe.com/docs/payments/checkout/pay-what-you-want

2/ OR build your own custom integration with PaymentIntents
https://stripe.com/docs/payments/accept-a-payment?platform=web

shrewd sonnet
#

okay i will check payment intent thank you though

solar light
#

NP! ๐Ÿ™‚ Happy to help