Digital wallets
New Google Pay session
Initiates a new session with Google Pay. This can be used when implementing
Google Pay without our SDK.
POST
/digital-wallets/google/session
curl --request POST \
--url https://api.sandbox.{gr4vy_id}.gr4vy.app/digital-wallets/google/session \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"origin_domain": "<origin_domain>"
}'
{
"gateway_merchant_id": "app.gr4vy.sandbox.spider.default",
"token": "eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJtZXJjaGFudElkIjoiQkNSMkRONFQ3QzNLWDZEWSIsIm1lcmNoYW50T3JpZ2luIjoiZW1iZWQuc2FuZGJveC5zcGlkZXIuZ3I0dnkuYXBwIiwiaWF0IjoxNjgzMjExMzk5fQ.Qk99p_j96aSxGmxUyyb06rNxIY7nh9-BvHJGWBrLBSFb3HkSbYRgq9YQzscWJtLHVvIJifkzSc8BgtllfAzh9A"
}
This endpoint requires the digital-wallets.write
or embed
scope.
Authorizations
Authorizationheaderrequired
string
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
origin_domainrequired
string
Fully qualified domain name of the merchant.
Response
200 - application/json
gateway_merchant_id
string
Your merchant ID.
token
string
The JWT for the current Google Pay session.
curl --request POST \
--url https://api.sandbox.{gr4vy_id}.gr4vy.app/digital-wallets/google/session \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"origin_domain": "<origin_domain>"
}'
{
"gateway_merchant_id": "app.gr4vy.sandbox.spider.default",
"token": "eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJtZXJjaGFudElkIjoiQkNSMkRONFQ3QzNLWDZEWSIsIm1lcmNoYW50T3JpZ2luIjoiZW1iZWQuc2FuZGJveC5zcGlkZXIuZ3I0dnkuYXBwIiwiaWF0IjoxNjgzMjExMzk5fQ.Qk99p_j96aSxGmxUyyb06rNxIY7nh9-BvHJGWBrLBSFb3HkSbYRgq9YQzscWJtLHVvIJifkzSc8BgtllfAzh9A"
}