Download the PHP package alexvargash/laravel-stripe-plaid without Composer
On this page you can find all versions of the php package alexvargash/laravel-stripe-plaid. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alexvargash/laravel-stripe-plaid
More information about alexvargash/laravel-stripe-plaid
Files in alexvargash/laravel-stripe-plaid
Package laravel-stripe-plaid
Short Description Simple package for creating a Stripe Bank Account Token from a Plaid token.
License MIT
Informations about the package laravel-stripe-plaid
Laravel Stripe Plaid
Simple package for creating a Stripe Bank Account Token from Plaid Link.
Installation
This package requires Laravel 5.5 or higher.
Require the package using composer:
The service provider will automatically get registered.
You can publish the configuration file with:
When published, the config/stripe-plaid.php
config file contains:
Usage
First, add the Plaid keys and environment to the config/stripe-plaid.php
file or on your .env
.
Then, you need to create the link_token
which is required as a parameter when initializing Link. Once Link has been initialized, it returns a public_token
.
To create the public token use createLinkToken
, this function needs the $clientUserId
(you can find more information here), optionally this fuction accepts $clientName, $products, $language, $countryCodes
if you don't provide these values the values on config/stripe-plaid.php
config file will be used.
Now you can use the value of $linkToken
on Link Web to get the public_token
and account_id
values.
After that you can process the payment with the $stripeToken
as you do with a Stripe Elements token.
The link creation and the exchange can be done with a Facade too.
Alternatively the Plaid keys can be set prior token exchange, this is handy when multiple Plaid accounts are going to be used.
Exceptions
When an error occurs a PlaidException
will be thrown. You can catch the PlaidException
on the Exceptions\Handler.php
file:
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
Contributors
License
MIT