oauth2-stripe
oauth2-stripe copied to clipboard
Sending the optional stripe_user info
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 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.
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]']]);