7.0.5 • Published 4 years ago

biapay v7.0.5

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

Prerequisites:

To use BIA-Payment-gateway you must have a BIA merchant account set up and verified. After this is done, you'll have access to your API credentials to use with this button. Once you have your account is verified, you will have a client ID and secret ID, this is what you will use to pass to BIA-Payment-Gateway.

npm version 4.x.x and above requires a peer dependency of react-v16.8.x react-dom-v16.8.x.

STEP 1 : process for getting access token using client ID and secret ID, need to trigger a rest API using below data;

url = https://biapay.colan.in/auth/token

method = "POST" 

headers = {'Content-Type': 'application/json', } 

 {
     "keyType":"client_access",
     "clientId" :  (string) //YOUR CLIENT ID HERE // example "fdCEwyvrLVdpydsgrsggso0/J0ErtVnDBxhaCQ64=",
     "clientSecretKey" :  (string) //YOUR SECRET ID HERE // example "fdCEwyvD+jsjdhjh3*#u8bQZFOfEPpM7FVd2Sme7do3vNt"
  }

in success responce you will get access token.

STEP 2 : process for accessing BIAPAY NPM using transaction details and above access token.

var transactionDetails = { "billno" : (number) some unique number maintained by merchant site for this transaction, "currency" : (number) currency code, "email" : (string) user email id,
"name" : (string) user full name ", "merchantName" : (string) merchant user name registered with BIA-payment-gateway, "paymentAmount" : (number) amount that is going transfer, "productdescription" : (string) information that related to purchase through this transaction, }

STEP 3 :Installation : $ npm install biapay --save

    import { BIAiframe } from 'biapay'

    export default function App() {
    
    
        return ( 

            <BIAiframe       
                    onError={this.onError}        // callback function when Error in transaction //

                    onSuccess={this.onSuccess}    // callback function when Success in transaction //

                    onCancel={this.onCancel}      // callback function when Cancellation in transaction //

                    transactionDetails = {transactionDetails} // Transaction details which are required data to                                                           complete the transaction.
                    clientId = // (string) # YOUR CLIENT ID HERE # example "fdCEwyvrLVdpydsgrsggso0J0ErtVnDBxhaCQ64=" //

                    accessToken={this.state.accessToken}      // access token that you will get from step 1 // 

                    />

        )

    }
    

License

MIT

7.0.5

4 years ago

7.0.4

4 years ago

7.0.3

4 years ago

7.0.2

4 years ago

7.0.1

4 years ago

7.0.0

4 years ago

6.0.9

5 years ago

6.0.8

5 years ago

6.0.7

5 years ago

6.0.6

5 years ago

6.0.5

5 years ago

6.0.4

5 years ago

6.0.3

5 years ago

6.0.2

5 years ago

6.0.1

5 years ago

6.0.0

5 years ago

0.5.9

5 years ago

0.5.8

5 years ago

0.5.7

5 years ago

0.5.6

5 years ago

0.5.5

5 years ago

0.4.8

5 years ago

0.4.7

5 years ago

0.4.6

5 years ago

0.4.5

5 years ago

0.4.4

5 years ago

0.4.3

5 years ago

0.4.2

5 years ago

0.4.1

5 years ago

0.4.0

5 years ago

0.3.9

5 years ago

0.3.8

5 years ago

0.3.7

5 years ago

0.3.6

5 years ago

0.3.5

5 years ago

0.3.4

5 years ago

0.3.3

5 years ago

0.3.2

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.9

5 years ago

0.2.8

5 years ago

0.2.7

5 years ago

0.2.6

5 years ago

0.2.5

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago