1.0.29 • Published 2 years ago

@sokhadze/payze-js v1.0.29

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years 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-js

Basic Usage

  1. Import payze-js SDK
    import {Payze} from "@payze/payze-js";
  2. initialize payze
    const payze = Payze('TransactionId');
  3. include following html

     <div id="card">
       <div id="card-info">
    
       </div>
    
       <div id="pay">
    
       </div>
     </div>
  4. Render Card Elements

     payze.renderCardInfo();
     payze.renderPayButton();

Customization

  1. Customize Card information inputs

     // setInputStyles method updates styling of one of the available inputs, 
     // it accepts 2 arguments, 
     // Argument #1 is object containing css styles
     // Argument #2 is name of the input to be styled, supported names are: PAN, NAME, DATE, CVV
     // Example usage: 
     payze.setInputStyles({'font-size': '14px', 'color': 'lightblue'}, 'PAN');
    
     // input styles will not be rendered until updateStyles method is called

    PAN: Primary Account Number input

    NAME: Cardholder Name input

    DATE: Expiration Date input

    CVV:

    Card Verification Number input

  2. Customize Pay Button

     // setButtonStyles method updates styling the pay button, 
     // it accepts 1 argument, an object containing css styles
     // Example usage: 
     payze.setButtonStyles({
       'font-size': '14px',
       'border': '0px solid grey',
       'border-radius': '0px',
       'padding': '10px',
       'margin': '10px 0px'
     });
    
     // button styles will not be rendered until updateStyles method is called
  3. Render Customized Element Styles

     // updateStyles method renders the updated styles from one of the above mentioned methods
     payze.updateStyles();
    
     // NOTE: payze.renderCardInfo and payze.renderPayButton should be called after payze.updateStyles method call

License

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

1.0.29

2 years ago

1.0.28

2 years ago

1.0.26

2 years ago

1.0.25

2 years ago

1.0.24

2 years ago

1.0.23

2 years ago

1.0.22

2 years ago

1.0.21

2 years ago

1.0.20

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago