GooglePay
| Feature | Description |
|---|---|
| Payment Logo-Usage Guidelines | |
| Integration Methods |
|
| Recommended Regions | Global |
| Virtual Industry Support | ✅ |
| Subscription Support | ✅ Varies by industry |
| Supported SaaS | All integrated SaaS platforms |
| Supported Open-Source Platforms |
|
Integration Method
Embedded
View the complete GooglePay Embedded integration solution.
Server to Server
To use this integration mode, you need to become an official GooglePay developer.
- GooglePay Developer Account Registration and Configuration
- Visit https://pay.google.com/about/business.
- Register using your company's Gmail/Google Workspace.
- Choose a business account.
- Create Merchant ID
- After registration, a Merchant ID will be generated, which can be viewed in Google Pay Console → API access → Merchant Info.
- Configure GooglePay API Key
- Create a project in the Google Cloud Console.
- Enable Google Pay API for Web/Android.
- Get the API Key.
- To obtain the GooglePay Payment Token, see the complete GooglePay example, pass the Token to Oceanpayment via the
pay_accountNumberparameter and call Server to Server.
const paymentsClient = new google.payments.api.PaymentsClient({ environment: 'TEST' });
const request = {
apiVersion: 2,
apiVersionMinor: 0,
allowedPaymentMethods: [{
type: 'CARD',
parameters: {
allowedAuthMethods: ['PAN_ONLY', 'CRYPTOGRAM_3DS'],
allowedCardNetworks: ['VISA', 'MASTERCARD'],
},
tokenizationSpecification: {
type: 'PAYMENT_GATEWAY',
parameters: {
'gateway': 'oceanpayment',
'gatewayMerchantId': 'oceanpayment',
},
},
}],
merchantInfo: {
merchantName: 'OceanPayment',
merchantId: 'BCR2DN4TWW...',
},
transactionInfo: {
totalPriceStatus: 'FINAL',
totalPrice: '10.00',
currencyCode: 'USD',
},
};
paymentsClient.loadPaymentData(request).then(paymentData => {
const token = paymentData.paymentMethodData.tokenizationData.token;
//Send token to the server for transaction processing.
});