@google-pay/button-angular
v3.1.0
Published
Angular component for Google Pay button
Downloads
26,630
Maintainers
Readme
Google Pay Angular button
This is the Angular component for the Google Pay button.
Installation
npm install @google-pay/button-angular
Example usage: Angular website
<google-pay-button
environment="TEST"
buttonType="buy"
buttonColor="black"
[paymentRequest]="{
apiVersion: 2,
apiVersionMinor: 0,
allowedPaymentMethods: [
{
type: 'CARD',
parameters: {
allowedAuthMethods: ['PAN_ONLY', 'CRYPTOGRAM_3DS'],
allowedCardNetworks: ['AMEX', 'VISA', 'MASTERCARD']
},
tokenizationSpecification: {
type: 'PAYMENT_GATEWAY',
parameters: {
gateway: 'example',
gatewayMerchantId: 'exampleGatewayMerchantId'
}
}
}
],
merchantInfo: {
merchantId: '12345678901234567890',
merchantName: 'Demo Merchant'
},
transactionInfo: {
totalPriceStatus: 'FINAL',
totalPriceLabel: 'Total',
totalPrice: '100.00',
currencyCode: 'USD',
countryCode: 'US'
}
}"
(loadpaymentdata)="onLoadPaymentData($event)"
></google-pay-button>
More Angular examples can be found in the examples folder of this repository.
Try it out on StackBlitz.
Documentation
Visit the Google Pay developer site for more information about integrating Google Pay into your website.
Properties
Callbacks/events
About this package
Note that this folder does not contain a package.json
file. The package.json
file is generated during the build
process using the package-template.json
where the version number is read from the package.json
file defined in the root of this repository.