dev-master
9999999-devyii 2 braintree integration
MIT
The Requires
by Ganesh Alkurn
yii2 extension braintree php
yii 2 braintree integration
braintree for yii 2, (*1)
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require --prefer-dist alkurn/yii2-braintree "dev-master"
or add, (*4)
"alkurn/yii2-braintree": "*"
to the require section of your composer.json
file., (*5)
Once the extension is installed, you should configure it in the application configuration like the following,, (*6)
'components' => [ 'braintree' => [ 'class' => 'alkurn\braintree\Braintree', 'environment' => 'sandbox', 'merchantId' => 'your_merchant_id', 'publicKey' => 'your_public_key', 'privateKey' => 'your_private_key', ] ]
** Creating a customer, (*7)
Yii::$app->braintree->gateway->customer()->create(['firstName' => 'first_name', 'lastName' => 'last_name', 'paymentMethodNonce' => 'Nonce']);
yii 2 braintree integration
MIT
yii2 extension braintree php