2.1.1 • Published 6 years ago

nativescript-paypal-checkout v2.1.1

Weekly downloads
1
License
Apache-2.0
Repository
-
Last release
6 years ago

PayPal Checkout apple android

Screenshot

Support

Support Android & iOS.

Installation

tns plugin add nativescript-paypal-checkout

Usage

In the demo you will find a test token to test quickly

import { PaypalCheckout, PaypalOptions } from 'nativescript-paypal-checkout';

private paypalCheckout: PaypalCheckout;

this.paypalCheckout = new PaypalCheckout();

let options: PaypalOptions = {
	token: "TOKEN", // The token is obtained from the server
	amount: "10",
	currencyCode: "USD"
};

this.paypalCheckout.paypalRequest(options).then(
	(nonce) => {
		console.log("Token nonce: " + nonce);
	}, (error) => {
		console.log(error);
	}
);

Others

Create token Server-Side : https://developers.braintreepayments.com/start/hello-server/php#generate-a-client-token

More references: https://developers.braintreepayments.com/guides/paypal/checkout-with-paypal/android/v2

Server-Side Implementation: https://developers.braintreepayments.com/guides/paypal/server-side/php

Thanks

Thanks to @jibon57 the configurations for the plugin

Settings app ios: https://github.com/jibon57/nativescript-braintree

License

Apache License Version 2.0, January 2004

2.1.1

6 years ago

2.1.0

6 years ago

2.0.0

6 years ago

1.2.0

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago