# Payments using Apple Pay or Google Pay
To make payments using Apple Pay or Google Pay, populate the card
property with the card credentials specified in the payment token.
Add details about the token as in the below example. If the payment method has been authenticated, it will contain a 3DS cryptogram that should be included in the token details, and no 3DS will be required. However, if the cryptogram is not present in the token, the payment method has not been authenticated and 3DS will be triggered.
# Request
POST /v1/authorization
Host: merchant.intergiro.com
Content-Type: application/json
Authorization: Bearer <public.api.key>
Accept: application/json
{
"number": "<psp-id>",
"amount": 10,
"currency": "EUR",
"card": {
"pan": "4111111111111111",
"expires": [ 1, 28]
},
"token_details": {
"type": "google-pay",
"eci": "05",
"cryptogram": "112233445566778899001122334="
},
"target": "<callback-url>",
"browser": {
"color_depth": 32,
"java": false,
"javascript": true,
"locale": "en-GB",
"timezone": 0,
"resolution": [800, 600],
"ipCountry": "SE"
}
}
# Response
{
"id": "<intergiro-tx-id>",
"merchant": "<merchant-id>",
"number": "<psp-id>",
"reference": "<processor-id>",
"created": "2024-03-21T16:26:18.124Z",
"amount": 10,
"currency": "EUR",
"card": {
"iin": "411111",
"last4": "1111",
"scheme": "visa",
"country": "SE",
"expires": [1, 28],
"csc": "not present",
"category": "customer",
"type": "debit",
"issuer": {
"name": "Testbank"
},
},
"token_type": "google-pay",
"history": [],
"capture": [],
"refund": [],
"category": "purchase",
"status": {
"authorized": 10
},
"processor": {
"mid": "<processor-merchant-id>",
"entry": "e-commerce",
"reference": {
"transaction": "<processor-id>",
"retrieval": "<retrieval-reference-number>",
"scheme": "<scheme-id>"
},
"response": {
"code": "00",
"csc": "matched",
"csc_result_code": "M",
"description": "Approved"
},
"code": "<authorization code>",
"eci": "05"
}
}