#neil.keena-SetupIntent

1 messages · Page 1 of 1 (latest)

rare nova
azure zealot
#

Hey, the request doesn't get logged

#

I've tested other failed requests and can see them in the logs but when I hit this endpoint I only get the 400 response but nothing in the logs

rare nova
#

Can you share with me the code?

azure zealot
#

I'm using Laravel to make an HTTP request with Guzzle

#
$response = Http::acceptJson()
    ->withToken(config('services.stripe.secret'))
    ->withHeaders([
        'Stripe-Account' => $stripeAccountId
    ])
    ->post('https://api.stripe.com/v1/setup_intents/'.$stripeSetupIntentId.'/verify_microdeposits', [
        'descriptor_code' => $data['descriptor_code'],
    ]);
#

Here's my request

rare nova
#

You should use Basic authorization and set the secret key as the username

azure zealot
#

What do I use as the password?

rare nova
#

Leave it empty

azure zealot
#

Okay.

#

I got it working. I was sending the post data incorrectly

#

Needed to send it as application/x-www-form-urlencoded and not application/json

#

Actually maybe not. I get a 200 but the setup intent does not get verified

rare nova
#

Send me the request ID?

azure zealot
#

Now it's working, lol

#

Just successfully verified a setup intent

#

req_1tac2gVoKLVbRg

rare nova
#

Nice, the SetupIntent is already suceeded

azure zealot
#

Thanks for the help

rare nova
#

No problem! You figure it out yourself!