zf-fr / zfr-stripe

ZfrStripe is a PHP library based on Guzzle for Stripe payment system
MIT License
44 stars 10 forks source link

Document the use of Stripe Connect access tokens #8

Closed hypeJunction closed 10 years ago

hypeJunction commented 10 years ago

I would love to get cracking with this lib, as it seems better structured than the native PHP SDK. One thing I am missing in the docs/examples is the use of access tokens for requests made on behalf of Connected users.

bakura10 commented 10 years ago

Hi,

I am using Stripe Connect all the days using my library, and you have nothing to do. Once you have an access token (either yours or a connect users one), just use the "setAccessToken" method on the client:

$client->setAccessToken('my_connected_user_token');
$client->getInvoices(); // It works! :D
bakura10 commented 10 years ago

I've added a note about that in the README. Thanks!