5.3.8 • Published 5 months ago

qenta-qmore-googlepay v5.3.8

Weekly downloads
-
License
ISC
Repository
-
Last release
5 months ago

Table of Contents

Features

  • Rendar the Googlepay button in any website

Browser Support

ChromeFirefoxSafariOperaEdgeIE
Latest ✔Latest ✔Latest ✔Latest ✔Latest ✔11 ✔

Installing

Using npm:

$ npm i qenta-qmore-googlepay

Using yarn:

$ yarn add qenta-qmore-googlepay

Once the package is installed, you can import the library using import approach:

import QMoreGooglePay from 'qenta-qmore-googlepay';

Example

Include a section with usage examples to help users understand how to apply your package in different scenarios.

This are the Property you need to pass.

PropertyDefinitionExample
secret *It's your qenta's secret key.-
customerId *It's your qenta's customerId.-
shopId *It's your qenta's shopId.-
language *if you want to change your local langvage by default we use english.en
amount *It's your payment amount.1 or 10 or 100 any number
currency *It's your local currency.INR,USD,ERU
orderDescription *It's your Description of your product.-
successUrl *It's your successurl if payment is sucessfull done then in witch page you want to redirect.https:// or Http://
cancelUrlIt's your cancelUrl if payment is cancle then in witch page you want to redirect.-
failureUrl *It's your failureurl if payment is fail then in witch page you want to redirect.https:// or Http://
serviceUrlIt's your serviceUrl-
pendingUrlIt's your pendingUrl if payment is pending then in witch page you want to redirect.-
confirmUrlIt's your confirmUrl if payment is confirm then in witch page you want to redirect.-
consumerBillingFirstnameIt's your billing consumer name.john
consumerBillingLastnameIt's your billing consumer lastname.Deo
consumerBillingAddress1It's your billing consumer address.flat name home number etc..
consumerBillingCityIt's your billing consumer city.New York.
consumerBillingZipCodeIt's your billing consumer Zipcode.123456
consumerBillingCountryIt's your billing consumer Country.USA
consumerBillingPhoneIt's your billing consumer Phone.1234567890
consumerEmailIt's your billing consumer email.john.doe@example.com
consumerBirthDateIt's your billing consumer birthdate.01/01/1992
basketItemsIt's your billing consumer basket item like how many item he purchese.1,5,10
basketItem1ArticleNumber *It's your Article Number.1,40,42
basketItem1Quantity *It's your basketItem1Quantity number.1,10,20
basketItem1Name *It's your basketItem1Name your product name.Mango,Apple
basketItem1DescriptionIt's your basketItem1Description your product details.This mango is fresh or any description
basketItem1ImageUrlIt's your basketItem1ImageUrl your product image url.https://url
basketItem1UnitGrossAmount *It's you basketItem1UnitGrossAmount same as amount.1,10,20
basketItem1UnitNetAmount *It's you basketItem1UnitGrossAmount amount.1,10,20
basketItem1UnitTaxAmountIt's you basketItem1UnitTaxAmount amount.1,10,20
basketItem1UnitTaxRate *It's your basketItem1UnitTaxRate your tax amount.1,10,20
buttonTypeIt's you buttonType you can add here with text you need in your googlepay button.bookdonatebuyorderpayplainsubscribe
buttonLocaleIt's your Langvage on your googlepay button.For English use "en" For Arabic use "ar" For Chinese use "zh" For Indonesian use "id" For Ukrainian use "uk"
buttonColorIt's you buttonColor with color you need to show to user.black,white

Example in React js

import QMoreGooglePay from 'qenta-qmore-googlepay';

  <QMoreGooglePay
      secret={'secret'}
      customerId={'customerId'}
      shopId={'shopId'}
      language={'language'}
      amount={'amount'}
      currency={'EUR'}
      orderDescription={'description'}
      successUrl={'http://yoursuccessUrl'}
      failureUrl={'http://yourfailureUrl'}
      basketItem1ArticleNumber={'42'}
      basketItem1Quantity={'1'}
      basketItem1Name={'your basket item name'}
      basketItem1UnitGrossAmount={'1'}
      basketItem1UnitNetAmount={'0.8'}
      basketItem1UnitTaxRate={'20'}
  />

Example in Vue js

import QMoreGooglePay from'qenta-qmore-googlepay';
      export default {
      name: 'App',
      components: {
          QMoreGooglePay
      }
  }

  <template>
      <QMoreGooglePay
        :secret="'secret'"
        :customerId="'customerId'"
        :shopId="'shopId'"
        :language="'language'"
        :amount="'amount'"
        :currency="'EUR'"
        :orderDescription="'description'"
        :successUrl="'http://yoursuccessUrl'"
        :failureUrl="'http://yourfailureUrl'"
        :basketItem1ArticleNumber="'42'"
        :basketItem1Quantity="'1'"
        :basketItem1Name="'your basket item name'"
        :basketItem1UnitGrossAmount="'1'"
        :basketItem1UnitNetAmount="'0.8'"
        :basketItem1UnitTaxRate="'20'"
      />
  </template>

Example in Angular js

Inside your .Ts File Add below code

import QMoreGooglePay from'qenta-qmore-googlepay';

export class AppComponent {
    props :any = {
        secret:'secret',
        customerId:'customerId',
        shopId:'shopId',
        language:'language',
        amount:'amount',
        currency='EUR',
        orderDescription='description',
        successUrl='http://yoursuccessUrl',
        failureUrl='http://yourfailureUrl',
        basketItem1ArticleNumber='42',
        basketItem1Quantity='1',
        basketItem1Name='mango',
        basketItem1UnitGrossAmount='1',
        basketItem1UnitNetAmount='0.8',
        basketItem1UnitTaxRate='20'
    };

    ocrGpayHtml: string;
    
    constructor() {
        this.ocrGpayHtml = QmoreGooglepay(this.props);
    }
}

Inside your .Html File Add below code

<div [innerHTML]="ocrGpayHtml"></div>

Resources

Supported language

This package supported in Reactjs vuejs AngularJS

License

This project is licensed under the License Name - see the LICENSE file for details.

acknowledgments

If your package relies on other open-source projects or you want to give credit to contributors, include an acknowledgments section.

5.3.8

5 months ago

5.3.3

7 months ago

5.3.2

7 months ago

5.3.7

7 months ago

5.3.6

7 months ago

5.3.4

7 months ago

1.2.0

8 months ago

5.3.1

7 months ago

5.3.0

7 months ago

1.2.8

8 months ago

1.2.7

8 months ago

1.2.6

8 months ago

1.2.5

8 months ago

4.1.8

8 months ago

1.2.4

8 months ago

4.1.7

8 months ago

1.2.3

8 months ago

1.2.2

8 months ago

4.1.9

8 months ago

1.2.1

8 months ago

2.0.3

8 months ago

2.0.2

8 months ago

2.0.5

8 months ago

2.0.9

8 months ago

2.0.8

8 months ago

2.0.1

8 months ago

2.1.9

8 months ago

4.4.1

8 months ago

4.0.5

8 months ago

4.4.0

8 months ago

4.0.4

8 months ago

4.4.3

8 months ago

4.0.7

8 months ago

4.4.2

8 months ago

4.0.6

8 months ago

4.0.1

8 months ago

4.0.3

8 months ago

4.0.2

8 months ago

5.0.8

8 months ago

5.0.7

8 months ago

5.0.6

8 months ago

1.1.1

8 months ago

5.0.5

8 months ago

1.1.0

8 months ago

5.0.4

8 months ago

5.0.3

8 months ago

5.0.2

8 months ago

5.0.1

8 months ago

5.0.0

8 months ago

1.1.9

8 months ago

1.1.8

8 months ago

1.1.7

8 months ago

1.1.6

8 months ago

4.4.5

8 months ago

4.0.9

8 months ago

1.1.5

8 months ago

4.4.4

8 months ago

4.0.8

8 months ago

1.1.4

8 months ago

4.4.7

8 months ago

1.1.3

8 months ago

4.4.6

8 months ago

1.1.2

8 months ago

2.3.0

8 months ago

2.3.2

8 months ago

2.3.1

8 months ago

0.0.1

8 months ago

4.3.2

8 months ago

4.3.1

8 months ago

4.3.4

8 months ago

0.0.2

8 months ago

4.3.3

8 months ago

4.3.0

8 months ago

1.2.9

8 months ago

5.1.9

8 months ago

5.1.8

8 months ago

5.1.7

8 months ago

5.1.6

8 months ago

5.1.5

8 months ago

5.1.4

8 months ago

5.1.3

8 months ago

5.1.2

8 months ago

5.1.1

8 months ago

4.3.9

8 months ago

4.3.6

8 months ago

4.3.5

8 months ago

4.3.8

8 months ago

4.3.7

8 months ago

2.2.1

8 months ago

2.2.0

8 months ago

2.2.3

8 months ago

2.2.2

8 months ago

2.2.5

8 months ago

2.2.4

8 months ago

2.2.7

8 months ago

2.2.6

8 months ago

3.0.4

8 months ago

3.0.3

8 months ago

4.2.3

8 months ago

4.2.2

8 months ago

4.2.5

8 months ago

4.2.4

8 months ago

4.2.1

8 months ago

4.2.0

8 months ago

5.2.9

7 months ago

5.2.8

7 months ago

5.2.7

7 months ago

5.2.6

7 months ago

5.2.5

7 months ago

5.2.4

7 months ago

5.2.3

7 months ago

5.2.2

7 months ago

5.2.1

7 months ago

5.2.0

7 months ago

4.2.7

8 months ago

4.2.6

8 months ago

4.2.9

8 months ago

4.2.8

8 months ago

2.1.2

8 months ago

2.1.1

8 months ago

2.1.4

8 months ago

2.1.3

8 months ago

2.1.6

8 months ago

2.1.5

8 months ago

2.1.7

8 months ago

2.1.0

8 months ago

2.2.9

8 months ago

2.2.8

8 months ago

4.1.4

8 months ago

4.1.3

8 months ago

4.1.6

8 months ago

4.1.5

8 months ago

4.1.0

8 months ago

4.1.2

8 months ago

4.1.1

8 months ago

1.0.9

8 months ago

1.0.8

8 months ago

1.0.7

8 months ago

1.0.6

8 months ago

1.0.5

8 months ago

1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago