Click-To-Pay Objects Reference (Response)

Response objects


ClickToPayResponse Object

Name

Type

Always exists

Description

status

String

Yes

Contains all transaction data. For more details please click on the link

amount

Decimal

Yes

This is a response object that's returned by Google after a payer approves payment

merchantRequestId

String

No

This is a response object that's returned by Google after a payer approves payment

merchantOrderId

String

No

This is a response object that's returned by Google after a payer approves payment

payload

Yes

This is a response object that's returned by Google after a payer approves payment


ClickToPayPayload Object

Name

Type

Always exists

Description

transactionId

String

Yes

A unique identifier for this payment

externalClientId

String

Yes

Information about the card used in the transaction.

encryptionKey

String

Yes

A unique identifier for this payment

token

String

Yes

An object containing the encrypted payment data. This is the object that needs to be Base64 Encoded and sent to gateway as xCardNum


ClickToPayResponse object example

{
  "status": "success",
  "amount": 6,
  "merchantRequestId": "Merchant defined request ID",
  "merchantOrderId": "Merchant defined order ID",
  "payload": {
    "transactionId": "1947120568389887601",
    "externalClientId": "test123",
    "encryptionKey": "Pqdjv842Nv...8q14l",
    "token": "FPA6TTy0q457.....tCf+tqH5/ruIQ1Iz4FI9hE5NBD+EM="
  }
}

Last updated