Skip to content

Angularjs Directive to create a paypal checkout button.

Notifications You must be signed in to change notification settings

Arfius/paypal-fast-checkout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

paypal-fast-checkout

Angularjs Directive to create a paypal checkout button.

Installation

npm install https://github.com/Arfius/paypal-fast-checkout.git

Get Started

Include the paypal-fast-checkout dependency on your Angular module:

var app = angular.module("example", ['paypalFastCheckoutDirective']);

Include the dependencies

 <script src="node_modules/angular/angular.js"></script>
 <script src="node_modules/underscore/underscore-min.js"></script>
 <script src="node_modules/paypal-fast-checkout/dist/paypal-fast-checkout.js"></script>

Create the configuration variable as $scope.paypal below and the callback as _create. This callback will be fired after the payment procedure.

$scope.paypal=
{
    sandbox:'xxxx',
    production:'',
    price:'10',
    currency:'EUR',
    symbol:'€',
    id:'club',
    show:'true'
}
var function= _create(data,action)
{
	//process data...
}

Then, delclare the directive:

  <paypal-fast-checkout config="paypal" callbacksuccess="_create"></paypal-fast-checkout>

Check the example in example directory. Run the example with

cd example
npm install

About

Angularjs Directive to create a paypal checkout button.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published