- [HTTP request](https://developers.google.com/pay/redirect-payment-token-v1/google-redirect-payment-token-api/generatePaymentTokenRedirectCompleteNotification#body.HTTP_TEMPLATE)
- [Request body](https://developers.google.com/pay/redirect-payment-token-v1/google-redirect-payment-token-api/generatePaymentTokenRedirectCompleteNotification#body.request_body)
  - [JSON representation](https://developers.google.com/pay/redirect-payment-token-v1/google-redirect-payment-token-api/generatePaymentTokenRedirectCompleteNotification#body.request_body.SCHEMA_REPRESENTATION)
- [Response body](https://developers.google.com/pay/redirect-payment-token-v1/google-redirect-payment-token-api/generatePaymentTokenRedirectCompleteNotification#body.response_body)
  - [JSON representation](https://developers.google.com/pay/redirect-payment-token-v1/google-redirect-payment-token-api/generatePaymentTokenRedirectCompleteNotification#body.GeneratePaymentTokenRedirectCompleteNotificationResponse.SCHEMA_REPRESENTATION)
- [RedirectPaymentNotificationRequestResult](https://developers.google.com/pay/redirect-payment-token-v1/google-redirect-payment-token-api/generatePaymentTokenRedirectCompleteNotification#RedirectPaymentNotificationRequestResult)
  - [JSON representation](https://developers.google.com/pay/redirect-payment-token-v1/google-redirect-payment-token-api/generatePaymentTokenRedirectCompleteNotification#RedirectPaymentNotificationRequestResult.SCHEMA_REPRESENTATION)
- [RedirectPaymentNotificationResult](https://developers.google.com/pay/redirect-payment-token-v1/google-redirect-payment-token-api/generatePaymentTokenRedirectCompleteNotification#RedirectPaymentNotificationResult)
  - [JSON representation](https://developers.google.com/pay/redirect-payment-token-v1/google-redirect-payment-token-api/generatePaymentTokenRedirectCompleteNotification#RedirectPaymentNotificationResult.SCHEMA_REPRESENTATION)

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/https://developers.google.com/pay/redirect-payment-token-v1/reference/glossary#payment_integrator_account_id`

### Request body

The request body contains data with the following structure:

| JSON representation |
|---|
| ``` { "requestHeader": { object (https://developers.google.com/pay/redirect-payment-token-v1/payment-integrator-redirect-payment-token-api/RequestHeader) }, "redirectRequestId": string, "result": { object (`https://developers.google.com/pay/redirect-payment-token-v1/google-redirect-payment-token-api/generatePaymentTokenRedirectCompleteNotification#RedirectPaymentNotificationRequestResult`) } } ``` |

| Fields ||
|---|---|
| `requestHeader` | `object (https://developers.google.com/pay/redirect-payment-token-v1/payment-integrator-redirect-payment-token-api/RequestHeader)` **REQUIRED**: Common header for all requests. |
| `redirectRequestId` | `string` **REQUIRED** : The `requestId` sent in the original/initiating redirect payment request. 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` | ``object (`https://developers.google.com/pay/redirect-payment-token-v1/google-redirect-payment-token-api/generatePaymentTokenRedirectCompleteNotification#RedirectPaymentNotificationRequestResult`)`` **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 (https://developers.google.com/pay/redirect-payment-token-v1/payment-integrator-redirect-payment-token-api/ResponseHeader) }, "result": { object (`https://developers.google.com/pay/redirect-payment-token-v1/google-redirect-payment-token-api/generatePaymentTokenRedirectCompleteNotification#RedirectPaymentNotificationResult`) } } ``` |

| Fields ||
|---|---|
| `responseHeader` | `object (https://developers.google.com/pay/redirect-payment-token-v1/payment-integrator-redirect-payment-token-api/ResponseHeader)` **REQUIRED**: Common header for all responses. |
| `result` | ``object (`https://developers.google.com/pay/redirect-payment-token-v1/google-redirect-payment-token-api/generatePaymentTokenRedirectCompleteNotification#RedirectPaymentNotificationResult`)`` **REQUIRED**: Contains the result of the request. |

## RedirectPaymentNotificationRequestResult

Result details of the redirect payment.

| JSON representation |
|---|
| ``` { // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "success": { object (https://developers.google.com/pay/redirect-payment-token-v1/payment-integrator-redirect-payment-token-api/getGeneratePaymentTokenRedirectStatus#Empty) }, "chargeExceedsTransactionLimit": { object (https://developers.google.com/pay/redirect-payment-token-v1/payment-integrator-redirect-payment-token-api/getGeneratePaymentTokenRedirectStatus#Empty) }, "chargeUnderLimit": { object (https://developers.google.com/pay/redirect-payment-token-v1/payment-integrator-redirect-payment-token-api/getGeneratePaymentTokenRedirectStatus#Empty) }, "insufficientFunds": { object (https://developers.google.com/pay/redirect-payment-token-v1/payment-integrator-redirect-payment-token-api/getGeneratePaymentTokenRedirectStatus#Empty) }, "accountDoesNotSupportCurrency": { object (https://developers.google.com/pay/redirect-payment-token-v1/payment-integrator-redirect-payment-token-api/getGeneratePaymentTokenRedirectStatus#Empty) }, "userExitedGeneratePaymentTokenFlow": { object (https://developers.google.com/pay/redirect-payment-token-v1/payment-integrator-redirect-payment-token-api/getGeneratePaymentTokenRedirectStatus#Empty) }, "riskDeclined": { object (https://developers.google.com/pay/redirect-payment-token-v1/payment-integrator-redirect-payment-token-api/getGeneratePaymentTokenRedirectStatus#Empty) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| **REQUIRED**: The result of the redirect payment. The message specifies if this payment was successful or declined. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `success` | `object (https://developers.google.com/pay/redirect-payment-token-v1/payment-integrator-redirect-payment-token-api/getGeneratePaymentTokenRedirectStatus#Empty)` Successful redirect payment, deliver the goods. |
| `chargeExceedsTransactionLimit` | `object (https://developers.google.com/pay/redirect-payment-token-v1/payment-integrator-redirect-payment-token-api/getGeneratePaymentTokenRedirectStatus#Empty)` This redirect payment token request `amount` exceeds per-transaction limit. |
| `chargeUnderLimit` | `object (https://developers.google.com/pay/redirect-payment-token-v1/payment-integrator-redirect-payment-token-api/getGeneratePaymentTokenRedirectStatus#Empty)` This redirect payment request `amount` does not meet the minimum transaction amount. |
| `insufficientFunds` | `object (https://developers.google.com/pay/redirect-payment-token-v1/payment-integrator-redirect-payment-token-api/getGeneratePaymentTokenRedirectStatus#Empty)` This account does not have sufficient funds to guarantee this redirect payment token request. |
| `accountDoesNotSupportCurrency` | `object (https://developers.google.com/pay/redirect-payment-token-v1/payment-integrator-redirect-payment-token-api/getGeneratePaymentTokenRedirectStatus#Empty)` This account does not support the requested currency. |
| `userExitedGeneratePaymentTokenFlow` | `object (https://developers.google.com/pay/redirect-payment-token-v1/payment-integrator-redirect-payment-token-api/getGeneratePaymentTokenRedirectStatus#Empty)` 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. |
| `riskDeclined` | `object (https://developers.google.com/pay/redirect-payment-token-v1/payment-integrator-redirect-payment-token-api/getGeneratePaymentTokenRedirectStatus#Empty)` The transaction was declined due to a risk check done by the integrator. |
| End of mutually exclusive fields. ||

## RedirectPaymentNotificationResult

Details corresponding to the result.

| JSON representation |
|---|
| ``` { // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "accepted": { object (https://developers.google.com/pay/redirect-payment-token-v1/payment-integrator-redirect-payment-token-api/getGeneratePaymentTokenRedirectStatus#Empty) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| **REQUIRED**: The result of the request. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `accepted` | `object (https://developers.google.com/pay/redirect-payment-token-v1/payment-integrator-redirect-payment-token-api/getGeneratePaymentTokenRedirectStatus#Empty)` The `RedirectPaymentCompleteNotificationRequest` was valid and is now being processed by Google. |
| End of mutually exclusive fields. ||