#smartkiparis
1 messages ยท Page 1 of 1 (latest)
Hello! Are you asking how to access that signature or what to do to verify that signature once it has been received?
I cannot understand where if comes from. We receive a request from Stripe to web hook.
we take this request as a payload.
What's next?
We take it from request headers?
Yes it looks like the header should be called STRIPE_SIGNATURE and you will get the signature from there
Are you not seeing a header like that on your events?
Is it called STRIPE_SIGNATURE?
Or HTTP_STRIPE_SIGNATURE
because in documentation it is called like in a second option
I am seeing STRIPE_SIGNATURE documented but whatever library or framework you are using may prepend HTTP there
If you print out the names of all the headers that you are getting you should see one or the other
There is a mechanism in Stripe that helps to reserve some amount of money on a Customer's card
Could you help me with that?
I need documentations for that
and also one question: I know that a mximum period of reservation or blocking needed amount is 7 days. Is there any way to set up needed period of money hold?
If you write in to our support team you can ask about extending the hold window. Credit card networks only allow it for certain business types so if you work in one of those industries we may be able to set that up for your account https://support.stripe.com/?contact=true
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Otherwise the main way to do this is to create a new hold when the old one expires though that has extra complexity around situations like if your second hold gets declined
No, I mean to reduce that period
For example, to set it up for 1 or 2 days
or you just cancel paymentintent prior to 7 day period end?
You can cancel the payment intent yourself via the API at that point. https://stripe.com/docs/api/payment_intents/cancel
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Unfortunately we don't have a configuration for this so you would need to schedule your system to make that call after a day or two
And can I create a payment Intent in such situation for existing Customer with confirmed payment method? So we will not need a Customer to block this amount? We have a system of blocking a deposit as a security deposit for a period of providing our service for customer
Hello ๐
Stepping in as Pompey needs to step away soon
ok
You can place a hold on previously saved payment method, yes. As long as the payment method was setup correctly for off-session use then it shouldn't trigger 3DS auth checks, no.
For example, we created a customer in stripe through Stripe Library.
Then We create a payment intent and confirm it through frontend.
In such process, could we save a payment method for off-session use? Using Stripe PHP library and fronend
You can, we have docs for this
https://stripe.com/docs/payments/save-during-payment
Thanks
So if there is a saved and confirmed payment method (e.g card), then I add Customer ID to payment intent and choose method (card) and allow manual capture method, right?
yup
Would recommend reading the full doc as we do cover that part in step 7 ๐
https://stripe.com/docs/payments/save-during-payment?platform=web#charge-saved-payment-method
What is Ephemeral key for a Customer?
They are mostly used for API operations that typically require a secret key
Our mobile SDKs typically make the use of ephemeral keys
So is it enough to return client_secret from created PaymentIntent (which has setup_future_usage) to Frontend, made with React?
Yup
cool, thanks
it says that back should return client secret, customer id and publishable key. But another doc says that when processing a payment a back should return only client secret
What doc are you referring to exactly? Can you check if you have a mobile integration tab selected?
I am checking react native
Yeah if you're implementing web then you should use web docs instead
ok