Google Pay
Overview
How it Works
Payment Flow
1.
2.
3.
4.
Integrating Google Pay with a Web Application
1.
1.
example
with swooshtransfer
.2.
exampleGatewayMerchantId
with your merchant ID (MID).1.
MerchantInfo
object with an additional MerchantID
parameter used to specify a Google Pay merchant identifier generated by Google when you create your Google Pay merchant account. See the Google Pay Web API documentation for more information.2.
1.
2.
PAN_ONLY
and CRYPTOGRAM_3DS
.3.
1.
1.
4.
5.
FULL
.6.
Using Google pay Service with Wooshpay Checkout
`MASTERCARD`, `VISA`
https://api.wooshpay.com/v1/checkout/sessions
1.
{
"cancel_url": "https://google.com/",
"mode": "payment",
"success_url": "https://google.com/",
"payment_method_types": [
"card"
],
"line_items": [
{
"price_data": {
"currency": "USD",
"unit_amount": 100,
"product_data": {
"name": "product",
"description": "product description",
"url": "https://product-url"
}
},
"quantity": 1
}
]
}
1.
{
"id": "cs_1721736435792347136",
"object": "checkout.session",
"created": 1699328929000,
"livemode": true,
"currency": "USD",
"customer": "",
"mode": "payment",
"status": "open",
"url": "https://checkout.wooshpay.com/pay/cs_1721736435792347136?key=cGtfbGl2ZV9OVEUyTnpZNE9EUTJOamN5TlRBek9EQTRNREF4T2s5dlEyMVNURk5uWkhORVIwY3lUbkpFUm01SmNYSnNSakUyT0RnMk16VTBNelF6TmpR",
"cancel_url": "https://google.com/",
"line_items": {
"object": "list",
"data": [
{
"id": "li_1721736435821707264",
"object": "item",
"currency": "USD",
"description": "product",
"price": {
"id": "price_1721736435834290176",
"object": "price",
"created": 1699328929000,
"livemode": true,
"active": false,
"currency": "USD",
"product": {
"id": "prod_1721736435846873088",
"object": "product",
"created": 1699328929000,
"livemode": true,
"active": false,
"description": "product description",
"name": "product",
"url": "https://product-url",
"updated": 1699328929000
},
"type": "one_time",
"unit_amount": 100,
"billing_scheme": "per_unit"
},
"quantity": 1,
"amount_subtotal": 100,
"amount_total": 100
}
]
},
"payment_intent": "pi_1721736438384427008",
"payment_method_types": [
"googlepay"
],
"payment_status": "unpaid",
"success_url": "https://google.com/",
"amount_subtotal": 100,
"amount_total": 100,
"billing_address_collection": "auto",
"expires_at": 1699415329269,
"payment_link": "",
"client_secret": "pi_1721736438384427008_secret_6VJCdXKvbyU2xtjGfljdZkbf"
}
url
parameter in the parameter structure, wait for the result notification, and update the order results in the system.Using Google pay Service with Wooshpay Sdk
1.
2.