#smartkiparis

1 messages ยท Page 1 of 1 (latest)

hasty oasisBOT
modest merlin
#

Hello! Are you asking how to access that signature or what to do to verify that signature once it has been received?

native agate
#

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?

modest merlin
#

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?

native agate
#

Is it called STRIPE_SIGNATURE?

#

Or HTTP_STRIPE_SIGNATURE

#

because in documentation it is called like in a second option

modest merlin
#

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

native agate
#

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

native agate
#

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?

modest merlin
#

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

#

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

native agate
#

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?

modest merlin
#

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

native agate
#

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

worthy thistle
#

Hello ๐Ÿ‘‹
Stepping in as Pompey needs to step away soon

native agate
#

ok

worthy thistle
#

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.

native agate
#

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

worthy thistle
native agate
#

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?

worthy thistle
#

yup

native agate
#

What is Ephemeral key for a Customer?

worthy thistle
#

They are mostly used for API operations that typically require a secret key
Our mobile SDKs typically make the use of ephemeral keys

native agate
#

So is it enough to return client_secret from created PaymentIntent (which has setup_future_usage) to Frontend, made with React?

worthy thistle
#

Yup

native agate
#

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

worthy thistle
#

What doc are you referring to exactly? Can you check if you have a mobile integration tab selected?

native agate
#

I am checking react native

worthy thistle
#

Yeah if you're implementing web then you should use web docs instead

native agate
#

ok