oauth2-stripe icon indicating copy to clipboard operation
oauth2-stripe copied to clipboard

Sending the optional stripe_user info

Open nWidart opened this issue 8 years ago • 2 comments

Hello,

On the stripe docs there is a part where we can send user information to stripe (like email, first/last name, etc.) to pre-fill part of the form.

Is this possible with the current implementation ?

Thanks

nWidart avatar Nov 08 '16 09:11 nWidart

@nWidart At the moment this isn't possible with the current implementation. I'll have a look at adding it in later, or I'm happy to accept a PR if you wanted to look into it.

adam-paterson avatar Nov 08 '16 09:11 adam-paterson

For anyone else that comes across this, you can pass through custom params when building the getAuthorizationUrl()

$stripe = new AdamPaterson\OAuth2\Client\Provider\Stripe($config);
$stripe->getAuthorizationUrl(['stripe_user' => ['email' => '[email protected]']]);

benrowe-chuffed avatar Feb 23 '21 02:02 benrowe-chuffed