yiibraintree Yiibraintree Simplify Integration of Braintree payment Solution into your ecommerce apps.

  1. Requirements
  2. Installation
  3. Usage
  4. Resources

Yiibraintree Simplify Integration of Braintree payment Solution into your ecommerce apps.

Requirements

Yii 1.1 or above

Installation

step1:Extract the file into your components directory step2:Update your components section in config/main.php eg:

'braintree' => array(
                                        'class'=>'application.components.braintree.YiiBraintree',

                                      'ENV' => 'sandbox',//sandbox or production

                                      'MERCHANT_ID' => 'merchant id here',

                                      'MERCHANT_ACCOUNT_ID'=>'Merchant account id here',

                                      'PUBLIC_KEY' => 'public key here',

                                      'PRIVATE_KEY'=>'private key here',

                                      'CSEK'=>'your CSEK here'


                                      ),

Usage

$data=array(
                'amount' => '10.50',
                'merchantAccountId' => Yii::app()->braintree->MERCHANT_ACCOUNT_ID,
                'creditCard' => array(
			              'number' => '5105105105105100',
			              'expirationMonth' => '05',
			              'expirationYear' => '12'
		                     )
               );
   $r=Yii::app()->braintree->sale($data);

Resources

Github URL: https://github.com/nintriva/yiibraintree

Regards,

Sirin K

3 0
3 followers
356 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: Web Service
Tags: BrainTree, Yii
Developed by: sirin k
Created on: Jun 11, 2014
Last updated: 6 years ago

Downloads

show all

Related Extensions