Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nericode/nativescript-paypal-checkout
Nativescript Plugin for PayPal
https://github.com/nericode/nativescript-paypal-checkout
android nativescript paypal typescript
Last synced: 21 days ago
JSON representation
Nativescript Plugin for PayPal
- Host: GitHub
- URL: https://github.com/nericode/nativescript-paypal-checkout
- Owner: nericode
- License: apache-2.0
- Created: 2018-05-16T19:04:00.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-01T22:49:32.000Z (almost 2 years ago)
- Last Synced: 2024-11-13T04:49:59.078Z (about 2 months ago)
- Topics: android, nativescript, paypal, typescript
- Language: TypeScript
- Homepage:
- Size: 2.52 MB
- Stars: 3
- Watchers: 3
- Forks: 3
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PayPal Checkout ![apple](https://cdn3.iconfinder.com/data/icons/picons-social/57/16-apple-32.png) ![android](https://cdn4.iconfinder.com/data/icons/logos-3/228/android-32.png)
## Screenshot
## Support
Support Android & iOS.
## Installation
```javascript
tns plugin add nativescript-paypal-checkout
```## Usage
In the demo you will find a test token to test quickly
```javascript
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