#Debjeet-payment-links-custom-amount
1 messages ยท Page 1 of 1 (latest)
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?
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.
When you say redirect to Stripe Payment, do you mean Stripe Checkout?
Oh you mean Payment Links
Can you confirm if you're creating Payment Links?
https://dashboard.stripe.com/test/payment-links
Gotcha.
ya this link
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.
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
We don't have that with Payment links but you might be able to use Stripe Checkout for this
https://stripe.com/docs/payments/checkout/pay-what-you-want
wait let me check
Debjeet-payment-links-custom-amount
this works but I have to create payment links everytime.
I have to work with payment intent only
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
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 likehttps://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
okay i will check payment intent thank you though
NP! ๐ Happy to help