#ajay-php

1 messages · Page 1 of 1 (latest)

warped rapids
#

@oak shale
it has to be
$stripe->paymentIntents->retrieve(['id'=> "pi_xxx"], ['stripe_account'=> "acct_xxx"])

oak shale
#

showing error after that above code update

warped rapids
#

it's just a warning

oak shale
#

but I havent got any response

warped rapids
#

yeah you probably have error_reporting(E_WARNING) set in your script

#

if you remove that does it work?

#

actually I think I was wrong

#

I think that's the syntax, try that.

oak shale
#

I am using
composer require stripe/stripe-php package

oak shale
warped rapids
#

first argument is the ID, second argument is parameters to the API call(there are none for this retrieve API though), third argument is the request-specific options, like stripe_account

oak shale
#

oh got it
I havent saw any details about it on stripe documentation.
Maybe I missed if its already somewhere

thanks again

#

now I am expecting card type (eg Visa, Mastercard) and card last 4 digit from response
possible?