- HTTP request
- Request body
- Response body
- RedirectPaymentNotificationRequestResult
- RedirectPaymentNotificationResult
Notify Google of the status of a redirect payment.
An example request looks like:
{
"requestHeader": {
"protocolVersion": {
"major": 1,
"minor": 1,
"revision": 0
},
"requestId": "cmVxdWVzdDE",
"requestTimestamp": "1481907920000"
},
"redirectRequestId": "cmVxdWVzdDE",
"result": {
"chargeExceedsTransactionLimit": {}
}
}
An example response looks like:
{
"responseHeader": {
"responseTimestamp": "1481899949611"
},
"result": {
"accepted": {}
}
}
HTTP request
POST https://vgw.googleapis.com/gsp/redirect-payment-token-v1/generatePaymentTokenRedirectCompleteNotification/:PIAID
Request body
The request body contains data with the following structure:
JSON representation |
---|
{
"requestHeader": {
object (RequestHeader)
},
"redirectRequestId": string,
"result": {
object ( |
Fields | |
---|---|
request |
REQUIRED: Common header for all requests. |
redirect |
REQUIRED: The This is a string that has a max length of 100 characters, and contains only the characters "a-z", "A-Z", "0-9", ":", "-", and "_". |
result |
REQUIRED: Result of this redirect payment. |
Response body
Response object for the generatePaymentTokenRedirectCompleteNotification
method.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"responseHeader": {
object (ResponseHeader)
},
"result": {
object ( |
Fields | |
---|---|
response |
REQUIRED: Common header for all responses. |
result |
REQUIRED: Contains the result of the request. |
RedirectPaymentNotificationRequestResult
Result details of the redirect payment.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field result . The result of the redirect payment. The message specifies if this payment was successful or declined. result can be only one of the following: |
|
success |
Successful redirect payment, deliver the goods. |
charge |
This redirect payment token request |
charge |
This redirect payment request |
insufficient |
This account does not have sufficient funds to guarantee this redirect payment token request. |
account |
This account does not support the requested currency. |
user |
User canceled the whole payment attempt. At any point in the payment flow, the user performed an action that canceled the payment. This should be used only when the payment will not complete in the future. |
risk |
The transaction was declined due to a risk check done by the integrator. |
RedirectPaymentNotificationResult
Details corresponding to the result.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field
|
|
accepted |
The |