#vladimir_api

1 messages ยท Page 1 of 1 (latest)

fading whaleBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1276471062405845054

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

minor field
#

๐Ÿ‘‹ happy to help

spiral notch
#

thanks you tarzan

minor field
#

are you using Checkout Session? or the custom flow with PaymentIntents?

spiral notch
#

look, i ll try to explain

#

i am not yet sure what i need to use, my client is a pain in the ass

#

he wants to ask user, how much he wants to donate- he wants a certain form i will develop to offer user to match someone else donation, or to increase last donation etc.. complicated.
So, i will have a form on my end, where user will simply enter the amount.
Now this amount, i need to send to Stripe API, and my client want to see this amount i have sent from website, to be unchangable on stripe form where user puts credit card information ( i dont know if that is possible at all)
So if user pays, i know stripe wil send me info to webhook and i will save it into db
SO i will change status of that donation as payment+recieved
But, now client wants to save payment_declined if stipe has declined payment

#

so, two in one- how i can achieve this flow, by using what API, and second is - do we get payment declined in this case above? ๐Ÿ™‚

#

YEah sorry, sound confusing, but i am on medicines with this client.

minor field
#

Now this amount, i need to send to Stripe API, and my client want to see this amount i have sent from website, to be unchangable on stripe form where user puts credit card information ( i dont know if that is possible at all)
I'm not sure what do you mean by that

spiral notch
#

let me try to explain- i know is confusing

#

In stripe we have donations- i am aware of this- we create a product as donation and we set min and max, or recommended values, and we simply send user from our website to the form created by stripe, and he enters the amount. I offered this to client, and he don want it.

#

What he want is to make a form on our website, and let user enter the amount he wants to donate to someone.
User enters amount, for example 100 usd, and click Pay now, and my client want now to go to stripe payment, enter the card number, and charge client 100 usd

minor field
#

the short answer is yes you can achieve a payment by using the custom flow (aka Stripe Elements) https://docs.stripe.com/payments/accept-a-payment?platform=web&ui=elements and when payments fail you will receive the payment_intent.payment_failed event
https://docs.stripe.com/api/events/types#event_types-payment_intent.payment_failed

Securely accept payments online.

spiral notch
#

thank you mister tarzan ๐Ÿ™‚

#

i will read this

fading whaleBOT