Commit e076886653cb324cd678b581edae3fc60118c9fc

Authored by Thanh Phạm
1 parent 40715c9bca
Exists in master

update

Showing 1 changed file with 20 additions and 2 deletions Side-by-side Diff

1   -Cordova Plugin Template
  1 +active8me cordova stripe payment webview
2 2 ======
3 3  
4   -This is a simple starting point for building a Cordova plugin on iOS and Android.
  4 +This is simple plugin that wrap an Webview for payment with https://stripe.com/docs/checkout#integration-simple.
  5 +
  6 +Usage:
  7 +
  8 +```
  9 +cordova.plugins.a8meStripePayment.open(
  10 + {
  11 + apiKey: "xxxxx",
  12 + amount: "2000",
  13 + marchantName: "Active8me Pte Ltd",
  14 + description: "2 widgets",
  15 + itemImage:"https://stripe.com/img/documentation/checkout/marketplace.png",
  16 + currency: "sgd",
  17 + }).then(function(event) {
  18 + // success payment
  19 + }).catch(function(event) {
  20 + // error payment
  21 + });
  22 +```
5 23 \ No newline at end of file