Get completion details about a specific redirect payment. If the user never redirected back to Google or there was a problem with the redirect, this API will be called to obtain the final result of a payment.
An example request looks like:
{
"requestHeader": {
"protocolVersion": {
"major": 1,
"minor": 1,
"revision": 0
},
"requestId": "cmVxdWVzdDE",
"requestTimestamp": "1481907920000"
},
"redirectRequestId": "cmVxdWVzdDE"
}
An example response looks like:
{
"responseHeader": {
"responseTimestamp": "1481899949611"
},
"result": {
"success": {}
}
}
HTTP request
POST https://www.integratorhost.example.com/integrator-base-path/redirect-payment-token-v1/getGeneratePaymentTokenRedirectStatus
Request body
The request body contains data with the following structure:
JSON representation |
---|
{
"requestHeader": {
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 "_". |
Response body
Response object for the redirect-payment-token-v1.getGeneratePaymentTokenRedirectStatus
method.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{ "responseHeader": { object ( |
Fields | |
---|---|
response |
REQUIRED: Common header for all responses. |
result |
REQUIRED: Result of this redirect payment. |
GeneratePaymentTokenRedirectResult
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, declined, or pending. result can be only one of the following: |
|
success |
Successful redirect payment, deliver the goods. |
pending |
Payment is pending a final answer. This is a non-terminal state to indiciate the token generation was inconclusive and will resolve to be a Depending on the Google product being purchased, if it takes too long for the integrator to tell Google the payment was successful, the payment may be considered canceled due to the user dropping out of session. A payment that is late in being marked successful (for some products) will immediately be refunded after the payment was reported as A |
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. |
user |
This user is not eligible for 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. |
Empty
This type has no fields.
This object is used for extensibility because booleans and enumerations often need to be extended with extra data. The implementer uses it to determine presence. The enumeration this represents may be extended to contain data in future versions.
The JSON representation for Empty
is empty JSON object {}
.