bitcoin Bitcoin extension simplify incorporation of Bitcoin (Coinbase) into your Yii application.

  1. Requirements
  2. Usage
  3. Asking User permission
  4. get user access token to manage user account.
  5. Resources

Bitcoin extension simplify incorporation of Bitcoin API (Coinbase) into your Yii application.Now you can start integrate Bitcoin with your Yii e-commerce apps.

Requirements

Yii 1.1

Usage

1.Download the package and extract into your components folder.

2.update components section in config.php

'bitcoin' => array(
                                      'class'=>'application.components.bitcoin.Bitcoin',
                                      
                                      'API_KEY' => '',
                                      'CLIENT_SECRET' => '',
                                      'CLIENT_ID' => '', 
                                     
                                      'CALLBACK_URL'=>'site/bitcoinCallback',
                                      
                                      'CANCEL_URL'=>'site/bitcoinCancel',
                                      
                                      'SUCCESS_URL'=>'site/bitcoinSuccess',
 
                                      ),
                          

-----you are done.

Asking User permission

$scope=array(
       'all'
     );    
Yii::app()->bitcoin->askPermission($scope);

get user access token to manage user account.

Yii::app()->bitcoin->getAccessToken($code); 

Note1: SignUp at https://coinbase.com to make a coin base app ,there you will find your API_kEY,CLIENT_ID,CLIENT_SECRET.

Dont worry..

Resources

Regards,

Sirin K

2 0
7 followers
283 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: Others
Developed by: sirin k
Created on: Dec 16, 2013
Last updated: 10 months ago

Downloads

show all