Wallet.js

Javascript Wallet Payments

Wallet.js

Wallet payments integration for Apple Pay and Google Pay

Wallet.js is a Javascript integration for wallet payments like Apple Pay and Google Pay.

 

Wallet.js is a frontend Javascript plugin built with Node.js. The application generates a single Javascript file that acts as a wrapper for walltet payments, allowing a quick and easy frontend integration.

With wallet.js, initialising payments becomes as simple as the below:

Apple Pay initialisation

With wallet.js, initialising Apple Pay payments becomes as simple as the below:

var wallet = new Wallet('#wallet', {
    type: 'applepay',
    amount: 11.00,
    config: {
        merchantId: 'merchant_id-70a5-4441-be9b-abb59e3fcd31',
        validationUrl: 'https://validation-url', 
        currencyCode: 'USD',  
    },
})

Google Pay initialisation

Initialising Google Pay doesn't require more effort:

var wallet = new Wallet('#wallet', {
    type: 'googlepay',
    amount: 11.00,
    config: {
        merchantId: 'merchant_id',
        gatewayName: 'gateway_name',
        currencyCode: 'USD',
    },
});

Please visit the wallet.js GitHhub repository for more information on how to use the integration, configure and initialise payments from the frontend of your application.