0.1.7 • Published 1 year ago

@payze/payze-apple-pay v0.1.7

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

comment: <> (Stargazers) MIT License

comment: <> ( )

comment: <> ( View Demo)

comment: <> ( ·)

comment: <> ( Report Bug)

comment: <> ( )

About The Project

Payze is the best software platform for running an internet business. We handle money movement flow for our customers by giving them tools they need.

Getting Started

Installation

  1. Install payze package in your project
    npm install @payze/payze-apple-pay

Basic Usage

  1. Import payze-apple-pay SDK
    import { PayzeApplePay } from "@payze/payze-apple-pay";
  2. Initialize payze
    const applePay = PayzeApplePay(merchantIdentifier, { amount, currencyCode, label }, callback);
  3. Include following html

     <div class="apple-pay-button apple-pay-button-black" 
           id="apple-pay-button" 
           (click)="clickEvent()">
    
     </div>
  4. Initialize Payment (In order to get transactionId you need to make request from API ('Just Pay' or 'Single Payment and Split')

    clickEvent() {
     this.applePay.makeApplePay('transactionId');
    }

Customization

// Payze Apple Pay SDK accepts 2 arguments: merchant Identifier and configuration
// both are required
// Example usage: 
const payze = PayzeApplePay('merchant.io.payze', {
  amount: 10, // required
  currencyCode: 'GEL', // default (not required)
  label: 'Payze' // default (not required)
}, applePayResultStatus);

applePayResultStatus(result) {
   console.log(result);
   //status: 0 success
   //status: 1 failed
}

License

Distributed under the MIT License. See LICENSE.txt for more information.

0.1.7

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.0.20

1 year ago

0.0.21

1 year ago

0.0.22

1 year ago

0.0.23

1 year ago

0.0.24

1 year ago

0.0.25

1 year ago

0.0.16

1 year ago

0.0.17

1 year ago

0.0.18

1 year ago

0.0.19

1 year ago

0.1.0

1 year ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago