Google Pay™
Learn how to accept Google Pay™ through Direct API. If you are using Drop-in or LinkPay, accepting Google Pay™ could be done via configuration.
Introduction
Google Pay is a digital wallet and payment service from Google that allows users to make fast, simple, and secure online, in-app payments using cards saved to their Google Account.
Credit, Debit cards from Visa, Mastercard and JCB are supported.
Code Samples
private static JSONObject getGatewayTokenizationSpecification() throws JSONException {
return new JSONObject() {{
put("type", "PAYMENT_GATEWAY");
put("parameters", new JSONObject() {{
put("gateway", "cardinfolink");
put("gatewayMerchantId", "`{sid that is generated by EVONET}`");
}});
}};
}
private static JSONObject getMerchantInfo() throws JSONException {
return new JSONObject().put("merchantId", "`{Merchant ID that is generated by Google}`");
}
paymentDataRequest.merchantInfo = {
merchantName: '`{Merchant Name}`',
merchantId: '`{Merchant ID that is generated by Google}`'
};
{
"status": true,
"name": hello,
}
{
"status": false
}
{
"status": true,
"name": hello,
}
Updated about 1 month ago