Sample stand-alone Gpay Sample.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Node.js and NPM version 12+.
You can either deploy this Node.js Express app stand alone on your machine or deploy it to .
Replace the parameters with your values. Refer to the Google Pay API gateway documentation for details on your payment gateway's settings.
const tokenizationSpecification = {
type: 'PAYMENT_GATEWAY',
parameters: {
'gateway': 'example',
'gatewayMerchantId': 'exampleGatewayMerchantId'
}
};
npm install
Your server should start by default with port 8080.
npm start
Example app listening on port 8080!