---
page_title: Order Failed
product: UPI TPAP SDK
platform: Android
page_source: https://juspay.io/in/docs/upi-tpap-sdk/android/callbacks/order-failed
llms_txt: https://juspay.io/in/docs/llms.txt
product_llms_txt: https://juspay.io/in/docs/upi-tpap-sdk/llms.txt
---


## Order Failed




### Step 1.1. ORDER_FAILED



### Payload
- **Id**:
  - Description: Event ID
  - Value: evt_V2_03c6ec0681124450b55cf92fa35df241
- **Event_name**:
  - Value: ORDER_FAILED
- **Date_created**:
  - Description: timestamp when webhook was created
  - Value: 2021-12-07T13:46:40Z
- **Content**:
  - Description: Details of the event
  - Value:
    - **Order**:
      - Value:
        - **Upi**:
          - Value:
            - **Txn_type**:
              - Value: UPI_INAPP
            - **Payer_vpa**:
              - Value: 8088219177@stockaxis
            - **Payer_app**:
              - Value: AXIS_BIZ
            - **Bank_name**:
              - Value: MYPSP
            - **Bank_code**:
              - Value: 500001
        - **Txn_uuid**:
          - Value: eulwh64Rw6dQSNBUZUE
        - **Txn_id**:
          - Value: stock-R7648276171-1
        - **Txn_detail**:
          - Value:
            - **Txn_uuid**:
              - Value: eulwh64Rw6dQSNBUZUE
            - **Txn_id**:
              - Value: stock-R7648276171-1
            - **Txn_amount**:
              - Value: 10000
            - **Tax_amount**:
              - Value: 0
            - **Surcharge_amount**:
              - Value: 0
            - **Status**:
              - Value: AUTHENTICATION_FAILED
            - **Redirect**:
              - Value: true
            - **Order_id**:
              - Value: R7648276171
            - **Net_amount**:
              - Value: 1000
            - **Gateway_id**:
              - Value: 511
            - **Gateway**:
              - Value: AXIS_BIZ
            - **Express_checkout**:
              - Value: false
            - **Error_message**:
              - Value: Bank is taking too long to respond. Please try again!
            - **Error_code**:
              - Value: U09
            - **Currency**:
              - Value: INR
            - **Created**:
              - Value: 2022-01-28T09:14:52Z
        - **Status_id**:
          - Value: 26
        - **Rewards_breakup**:
          - Value: null
        - **Status**:
          - Value: AUTHENTICATION_FAILED
        - **Payment_method**:
          - Value: UPI
        - **Return_url**:
          - Value: https://links.stockpay.in/repayments
        - **Refunded**:
          - Value: false
        - **Product_id**:
        - **Payment_method_type**:
          - Value: UPI
        - **Payment_links**:
          - Value:
            - **Web**:
              - Value: https://sandbox.juspay.in/merchant/pay/ordeu_f07e1293e5684eb5ae815dbf6c998644
            - **Mobile**:
              - Value: https://sandbox.juspay.in/merchant/pay/ordeu_f07e1293e5684eb5ae815dbf6c998644?mobile=true
            - **Iframe**:
              - Value: https://sandbox.juspay.in/merchant/ipay/ordeu_f07e1293e5684eb5ae815dbf6c998644
        - **Payment_gateway_response**:
          - Value:
            - **Txn_id**:
              - Value: eulwh64Rw6dQSNBUZUE
            - **Rrn**:
              - Value: 202814207184
            - **Resp_message**:
              - Value: Bank is taking too long to respond. Please try again!
            - **Resp_code**:
              - Value: U09
            - **Gateway_response**:
              - Value:
                - **MerchantChannelId**:
                  - Value: stockAPP
                - **Amount**:
                  - Value: 10000.00
                - **MerchantId**:
                  - Value: stock
                - **GatewayResponseMessage**:
                  - Value: Bank is taking too long to respond. Please try again!
                - **PayerVpa**:
                  - Value: 8088219177@stockaxis
                - **MerchantRequestId**:
                  - Value: eulwh64Rw6dQSNBUZUE
                - **GatewayResponseCode**:
                  - Value: U09
                - **GatewayReferenceId**:
                  - Value: 202814207184
                - **GatewayTransactionId**:
                  - Value: AXB22f8d0fafdf9455bb9d7b657c2ab14e4
                - **PayeeVpa**:
                  - Value: repayments@stockaxis
                - **TransactionTimestamp**:
                  - Value: 2022-01-28T14:44:51+05:30
                - **Type**:
                  - Value: MERCHANT_CREDITED_VIA_PAY
            - **Epg_txn_id**:
              - Value: AXB22f8d0fafdf9455bb9d7b657c2ab14e4
            - **Created**:
              - Value: 2022-01-28T09:15:04Z
            - **Auth_id_code**:
              - Value: null
        - **Payer_vpa**:
          - Value: 8088219177@stockaxis
        - **Order_id**:
          - Value: R7648276171
        - **Offers**:
          - Value: [ ]
        - **Metadata**:
          - Value: null
        - **Merchant_id**:
          - Value: stock
        - **Id**:
          - Value: ordeu_f07e1293e5684eb5ae815dbf6c998644
        - **Gateway_reference_id**:
          - Value: null
        - **Gateway_id**:
          - Value: 511
        - **Effective_amount**:
          - Value: 1000
        - **Date_created**:
          - Value: 2022-01-28T09:14:51Z
        - **Customer_phone**:
          - Value: 8088219177
        - **Customer_id**:
        - **Customer_email**:
          - Value: null
        - **Currency**:
          - Value: INR
        - **Bank_pg**:
          - Value: null
        - **Bank_error_message**:
          - Value: Bank is taking too long to respond. Please try again!
        - **Bank_error_code**:
          - Value: U09
        - **Auth_type**:
        - **Amount_refunded**:
          - Value: 0
        - **Amount**:
          - Value: 1000




#### Code Snippets: -

#### Flutter Code Snippet:

```flutter
{
  "id": "evt_V2_adedb85fc8d7404ab5c044a25ca1303f",
  "event_name": "ORDER_FAILED",
  "date_created": "2022-01-28T09:16:46Z",
  "content": {
    "order": {
      "upi": {
        "txn_type": "UPI_INAPP",
        "payer_vpa": "8088219177@sliceaxis",
        "payer_app": "AXIS_BIZ",
        "bank_name": "MYPSP",
        "bank_code": "500001"
      },
      "txn_uuid": "eul2PiJnWLDUnC9SKr2",
      "txn_id": "slice-R670115430-1",
      "txn_detail": {
        "txn_uuid": "eul2PiJnWLDUnC9SKr2",
        "txn_id": "slice-R670115430-1",
        "txn_amount": 200001,
        "tax_amount": 0,
        "surcharge_amount": 0,
        "status": "AUTHENTICATION_FAILED",
        "redirect": true,
        "order_id": "R670115430",
        "net_amount": 200001,
        "gateway_id": 514,
        "gateway": "YES_BIZ",
        "express_checkout": false,
        "error_message": "Bank is taking too long to respond. Please try again!",
        "error_code": "U09",
        "currency": "INR",
        "created": "2022-01-28T09:16:23Z"
      },
      "status_id": 26,
      "status": "AUTHENTICATION_FAILED",
      "rewards_breakup": null,
      "return_url": "https://links.slicepay.in/repayments",
      "refunded": false,
      "product_id": "",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "payment_links": {
        "web": "https://sandbox.juspay.in/merchant/pay/ordeu_a9d8fc9ee3a9497da961537fc045f66e",
        "mobile": "https://sandbox.juspay.in/merchant/pay/ordeu_a9d8fc9ee3a9497da961537fc045f66e?mobile=true",
        "iframe": "https://sandbox.juspay.in/merchant/ipay/ordeu_a9d8fc9ee3a9497da961537fc045f66e"
      },
      "payment_gateway_response": {
        "txn_id": "eul2PiJnWLDUnC9SKr2",
        "rrn": "202814514190",
        "resp_message": "Bank is taking too long to respond. Please try again!",
        "resp_code": "U09",
        "gateway_response": {
          "merchantChannelId": "SLICEAPP",
          "amount": "200001.00",
          "merchantId": "SLICE",
          "gatewayResponseMessage": "Bank is taking too long to respond. Please try again!",
          "merchantRequestId": "eul2PiJnWLDUnC9SKr2",
          "gatewayResponseCode": "U09",
          "gatewayPayerResponseCode" : "00",
          "gatewayPayerResponseMessage" : "Your transaction is successful",
          "payerName" : "XXXX",
          "payerVpa" : "XXXX",
          "payerAccRefId" : "Ajwebfwfwbefiwefwhfwehfwoier",
          "payerActype" : "Savings",
          "gatewayReferenceId": "202814514190",
          "gatewayTransactionId": "AXB961f2e31e3614bdca113b3a9959092cd",
          "payeeVpa": "repayments@sliceaxis",
          "transactionTimestamp": "2022-01-28T14:46:20+05:30",
          "type": "MERCHANT_CREDITED_VIA_PAY"
        },
        "epg_txn_id": "AXB961f2e31e3614bdca113b3a9959092cd",
        "created": "2022-01-28T09:16:46Z",
        "auth_id_code": null
      },
      "payer_vpa": "8088219177@sliceaxis",
      "order_id": "R670115430",
      "offers": [

      ],
      "metadata": null,
      "merchant_id": "slice",
      "id": "ordeu_a9d8fc9ee3a9497da961537fc045f66e",
      "gateway_reference_id": null,
      "gateway_id": 514,
      "effective_amount": 200001,
      "date_created": "2022-01-28T09:16:22Z",
      "customer_phone": "",
      "customer_id": "8088219177",
      "customer_email": null,
      "currency": "INR",
      "bank_pg": null,
      "bank_error_message": "Bank is taking too long to respond. Please try again!",
      "bank_error_code": "U09",
      "auth_type": "",
      "amount_refunded": 0,
      "amount": 200001
    }
  }
}
```


## Sample Code Snippets:
### Callback:

#### ORDER_FAILED Code Snippet:

```order_failed
// block:start:txnCreated

{
  "id": "evt_V2_5c08a08095ea4279ad28347241678c0b",
  "event_name": "TXN_CREATED",
  "date_created": "2022-01-28T09:14:52Z",
  "content": {
    "order": {
      "upi": {
        "txn_type": "UPI_INAPP",
        "payer_vpa": "8088219177@sliceaxis",
        "payer_app": "AXIS_BIZ",
        "bank_name": "MYPSP",
        "bank_code": "500001"
      },
      "txn_uuid": "eulwh64Rw6dQSNBUZUE",
      "txn_id": "slice-R7648276171-1",
      "txn_detail": {
        "txn_uuid": "eulwh64Rw6dQSNBUZUE",
        "txn_id": "slice-R7648276171-1",
        "txn_amount": 10000,
        "tax_amount": 0,
        "surcharge_amount": 0,
        "status": "PENDING_VBV",
        "redirect": true,
        "order_id": "R7648276171",
        "net_amount": 10000,
        "gateway_id": 514,
        "gateway": "YES_BIZ",
        "express_checkout": false,
        "error_message": "",
        "error_code": null,
        "currency": "INR",
        "created": "2022-01-28T09:14:52Z"
      },
      "status_id": 23,
      "status": "PENDING_VBV",
      "rewards_breakup": null,
      "return_url": "https://links.slicepay.in/repayments",
      "refunded": false,
      "product_id": "",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "payment_links": {
        "web": "https://sandbox.juspay.in/merchant/pay/ordeu_f07e1293e5684eb5ae815dbf6c998644",
        "mobile": "https://sandbox.juspay.in/merchant/pay/ordeu_f07e1293e5684eb5ae815dbf6c998644?mobile=true",
        "iframe": "https://sandbox.juspay.in/merchant/ipay/ordeu_f07e1293e5684eb5ae815dbf6c998644"
      },
      "payer_vpa": "8088219177@sliceaxis",
      "order_id": "R7648276171",
      "offers": [

      ],
      "metadata": null,
      "merchant_id": "slice",
      "id": "ordeu_f07e1293e5684eb5ae815dbf6c998644",
      "gateway_reference_id": null,
      "gateway_id": 514,
      "effective_amount": 10000,
      "date_created": "2022-01-28T09:14:51Z",
      "customer_phone": "",
      "customer_id": "8088219177",
      "customer_email": null,
      "currency": "INR",
      "bank_pg": null,
      "bank_error_message": "",
      "bank_error_code": "",
      "auth_type": "",
      "amount_refunded": 0,
      "amount": 10000
    }
  }
}

// block:end:txnCreated

// block:start:txnCharged

{
  "id": "evt_V2_0605110330aa49cea64215d095bf050b",
  "event_name": "TXN_CHARGED",
  "date_created": "2022-01-28T09:15:04Z",
  "content": {
    "txn": {
      "txn_uuid": "eulwh64Rw6dQSNBUZUE",
      "txn_id": "slice-R7648276171-1",
      "txn_amount": 10000,
      "tax_amount": 0,
      "surcharge_amount": 0,
      "status_id": 21,
      "status": "CHARGED",
      "redirect": true,
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "payment_gateway_response": {
        "txn_id": "eulwh64Rw6dQSNBUZUE",
        "rrn": "202814207184",
        "resp_message": "Your transaction is successful",
        "resp_code": "00",
        "epg_txn_id": "AXB22f8d0fafdf9455bb9d7b657c2ab14e4",
        "created": "2022-01-28T09:15:04Z",
        "auth_id_code": null
      },
      "order_id": "R7648276171",
      "net_amount": 10000,
      "gateway_id": 514,
      "gateway": "YES_BIZ",
      "express_checkout": false,
      "error_message": "",
      "error_code": "",
      "currency": "INR",
      "created": "2022-01-28T09:14:52Z"
    }
  }
}

// block:end:txnCharged

// block:start:orderSucceeded

{
  "id": "evt_V2_45dca165c3364d2db56f2df48fac2f7a",
  "event_name": "ORDER_SUCCEEDED",
  "date_created": "2022-01-28T09:15:04Z",
  "content": {
    "order": {
      "upi": {
        "txn_type" : "UPI_INAPP",
        "bank_name": "HDFC bank",
        "bank_code": "607689",
        "payer_vpa" : "customer@vpa",
        "payer_app" : "ABCD",
        "masked_bank_account_number": "XXXXXXXXX5678",
        "upi_bank_account_reference_id": "ABC12356789"
      },
      "txn_uuid": "eulx2nzeGu7MT56drQK",
      "txn_id": "azharamin-Juspay202_159-1",
      "txn_detail": {
        "txn_uuid": "eulx2nzeGu7MT56drQK",
        "txn_id": "azharamin-Juspay202_159-1",
        "txn_amount": 1,
        "tax_amount": null,
        "surcharge_amount": null,
        "status": "CHARGED",
        "order_id": "Juspay202_159",
        "offer_deduction_amount": null,
        "net_amount": 1,
        "gateway_id": 514,
        "gateway": "YES_BIZ",
        "express_checkout": false,
        "error_message": "",
        "error_code": null,
        "currency": "INR",
        "created": "2020-08-30T09:53:17Z",
        "redirect": true
     },
      "status_id": 21,
      "status": "CHARGED",
      "rewards_breakup": null,
      "return_url": "https://links.ABCD.in/repayments",
      "refunded": false,
      "product_id": "",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "payment_links": {
        "web": "https://api.juspay.in/merchant/pay/ordeu_f07e1293e5684eb5ae815dbf6c998644",
        "mobile": "https://api.juspay.in/merchant/pay/ordeu_f07e1293e5684eb5ae815dbf6c998644?mobile=true",
        "iframe": "https://api.juspay.in/merchant/ipay/ordeu_f07e1293e5684eb5ae815dbf6c998644"
      },
      "payment_gateway_response": {
        "resp_code": "00",
        "rrn": "443492753298",
        "network_error_code": null,
        "created": "2021-08-17T13:44:21Z",
        "epg_txn_id": "YJP9999rv9999a99c19a4877ede7954984e",
        "resp_message": "Your transaction is successful",
        "auth_id_code": null,
        "network_error_message": null,
        "txn_id": "eul7yc7TReHhAyNVsGp",
        "gateway_response": {
          "payeeMcc": "5816",
          "merchantId": "ABCD",
          "transactionTimestamp": "2024-03-08T16:05:12+05:30",
          "gatewayPayerResponseMessage": "FILTERED",
          "customResponse": "{}",
          "type": "MERCHANT_CREDITED_VIA_PAY",
          "gatewayReferenceId": "FILTERED",
          "gatewayPayerResponseCode": "FILTERED",
          "payerVpa": "customer@vpa",
          "refUrl": "https://www.juspay.com/",
          "gatewayResponseStatus": "SUCCESS",
          "payerAccRefId": "Ab7sd7v782342239",
          "gatewayResponseCode": "00",
          "merchantChannelId": "ABCDAPP",
          "payerActype": "SAVINGS",
          "payerIfsc": "ABCD1234",
          "payerName": "CUST",
          "payeeVpa": "ABCD@xyz",
          "gatewayTransactionId": "YJP9999rv9999a99c19a4877ede7954984e",
          "udfParameters": "{}",
          "gatewayResponseMessage": "Your transaction is successful",
          "payerMerchantCustomerId": "customer1",
          "merchantRequestId": "gameskraft-326UD9MKRU6OID5-1",
          "amount": "1.00"
        }
     },
     "merchant_id": "ABCD",
     "id": "ordeu_d002f7536b054b70be39b023976ab736",
     "gateway_reference_id": "111",
     "gateway_id": 514,
     "date_created": "2021-04-09T14:54:33Z",
     "customer_phone": "8867116657",
     "customer_id": "CUST",
     "customer_email": "CUST@mail",
     "currency": "INR",
     "bank_error_message": "",
     "bank_error_code": "",
     "amount_refunded": 0,
     "amount": 1
  },
      "payer_vpa": "customer@vpa",
      "order_id": "Juspay202_159",
      "offers": [

      ],
      "metadata": null,
      "merchant_id": "ABCD",
      "id": "ordeu_f07e1293e5684eb5ae815dbf6c998644",
      "gateway_reference_id": null,
      "gateway_id": 514,
      "effective_amount": 10000,
      "date_created": "2022-01-28T09:14:51Z",
      "customer_phone": "",
      "customer_id": "CUST",
      "customer_email": null,
      "currency": "INR",
      "bank_pg": null,
      "bank_error_message": "",
      "bank_error_code": "",
      "auth_type": "",
      "amount_refunded": 0,
      "amount": 1
    }
}


// block:end:orderSucceeded

// block:start:txnFailed

{
  "id": "evt_V2_311d1b273a084b06bfd957e01293f8ce",
  "event_name": "TXN_FAILED",
  "date_created": "2022-01-28T09:16:46Z",
  "content": {
    "txn": {
      "txn_uuid": "eul2PiJnWLDUnC9SKr2",
      "txn_id": "slice-R670115430-1",
      "txn_amount": 200001,
      "tax_amount": 0,
      "surcharge_amount": 0,
      "status_id": 26,
      "status": "AUTHENTICATION_FAILED",
      "redirect": true,
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "payment_gateway_response": {
        "txn_id": "eul2PiJnWLDUnC9SKr2",
        "rrn": "202814514190",
        "resp_message": "Bank is taking too long to respond. Please try again!",
        "resp_code": "U09",
        "epg_txn_id": "AXB961f2e31e3614bdca113b3a9959092cd",
        "created": "2022-01-28T09:16:46Z",
        "auth_id_code": null
      },
      "order_id": "R670115430",
      "net_amount": 200001,
      "gateway_id": 514,
      "gateway": "YES_BIZ",
      "express_checkout": false,
      "error_message": "Bank is taking too long to respond. Please try again!",
      "error_code": "U09",
      "currency": "INR",
      "created": "2022-01-28T09:16:23Z"
    }
  }
}

// block:end:txnFailed

// block:start:orderFailed

{
  "id": "evt_V2_adedb85fc8d7404ab5c044a25ca1303f",
  "event_name": "ORDER_FAILED",
  "date_created": "2022-01-28T09:16:46Z",
  "content": {
    "order": {
      "upi": {
        "txn_type": "UPI_INAPP",
        "payer_vpa": "8088219177@sliceaxis",
        "payer_app": "AXIS_BIZ",
        "bank_name": "MYPSP",
        "bank_code": "500001"
      },
      "txn_uuid": "eul2PiJnWLDUnC9SKr2",
      "txn_id": "slice-R670115430-1",
      "txn_detail": {
        "txn_uuid": "eul2PiJnWLDUnC9SKr2",
        "txn_id": "slice-R670115430-1",
        "txn_amount": 200001,
        "tax_amount": 0,
        "surcharge_amount": 0,
        "status": "AUTHENTICATION_FAILED",
        "redirect": true,
        "order_id": "R670115430",
        "net_amount": 200001,
        "gateway_id": 514,
        "gateway": "YES_BIZ",
        "express_checkout": false,
        "error_message": "Bank is taking too long to respond. Please try again!",
        "error_code": "U09",
        "currency": "INR",
        "created": "2022-01-28T09:16:23Z"
      },
      "status_id": 26,
      "status": "AUTHENTICATION_FAILED",
      "rewards_breakup": null,
      "return_url": "https://links.slicepay.in/repayments",
      "refunded": false,
      "product_id": "",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "payment_links": {
        "web": "https://sandbox.juspay.in/merchant/pay/ordeu_a9d8fc9ee3a9497da961537fc045f66e",
        "mobile": "https://sandbox.juspay.in/merchant/pay/ordeu_a9d8fc9ee3a9497da961537fc045f66e?mobile=true",
        "iframe": "https://sandbox.juspay.in/merchant/ipay/ordeu_a9d8fc9ee3a9497da961537fc045f66e"
      },
      "payment_gateway_response": {
        "txn_id": "eul2PiJnWLDUnC9SKr2",
        "rrn": "202814514190",
        "resp_message": "Bank is taking too long to respond. Please try again!",
        "resp_code": "U09",
        "gateway_response": {
          "merchantChannelId": "SLICEAPP",
          "amount": "200001.00",
          "merchantId": "SLICE",
          "gatewayResponseMessage": "Bank is taking too long to respond. Please try again!",
          "merchantRequestId": "eul2PiJnWLDUnC9SKr2",
          "gatewayResponseCode": "U09",
          "gatewayPayerResponseCode" : "00",
          "gatewayPayerResponseMessage" : "Your transaction is successful",
          "payerName" : "XXXX",
          "payerVpa" : "XXXX",
          "payerAccRefId" : "Ajwebfwfwbefiwefwhfwehfwoier",
          "payerActype" : "Savings",
          "gatewayReferenceId": "202814514190",
          "gatewayTransactionId": "AXB961f2e31e3614bdca113b3a9959092cd",
          "payeeVpa": "repayments@sliceaxis",
          "transactionTimestamp": "2022-01-28T14:46:20+05:30",
          "type": "MERCHANT_CREDITED_VIA_PAY"
        },
        "epg_txn_id": "AXB961f2e31e3614bdca113b3a9959092cd",
        "created": "2022-01-28T09:16:46Z",
        "auth_id_code": null
      },
      "payer_vpa": "8088219177@sliceaxis",
      "order_id": "R670115430",
      "offers": [

      ],
      "metadata": null,
      "merchant_id": "slice",
      "id": "ordeu_a9d8fc9ee3a9497da961537fc045f66e",
      "gateway_reference_id": null,
      "gateway_id": 514,
      "effective_amount": 200001,
      "date_created": "2022-01-28T09:16:22Z",
      "customer_phone": "",
      "customer_id": "8088219177",
      "customer_email": null,
      "currency": "INR",
      "bank_pg": null,
      "bank_error_message": "Bank is taking too long to respond. Please try again!",
      "bank_error_code": "U09",
      "auth_type": "",
      "amount_refunded": 0,
      "amount": 200001
    }
  }
}

// block:end:orderFailed



// block:start:mandateCallback

{
   "id": "evt_V2_4b83ba211443b53fc020d4c",
   "event_name": "ORDER_SUCCEEDED",
   "date_created": "2021-03-20T07:48:31Z",
   "content": {
     "order": {
       "txn_uuid": "eulmy******y1Syy",
       "txn_id": "juspay-2348******3498-1",
       "txn_detail": {
         "txn_uuid": "eulmy******y1Syy",
         "txn_object_type": "EMANDATE_REGISTER",
         "txn_id": "juspay-2348******3498-1",
         "txn_amount": 1,
         "tax_amount": null,
         "surcharge_amount": null,
         "status": "CHARGED",
         "source_object_id": "91887",
         "source_object": "MANDATE",
         "redirect": true,
         "order_id": "2348******3498",
         "net_amount": 1,
         "gateway_id": 514,
         "gateway": "YES_BIZ",
         "express_checkout": false,
         "error_message": "",
         "error_code": "",
         "currency": "INR",
         "created": "2020-08-30T09:53:17Z"
       },
       "status_id": 21,
       "status": "CHARGED",
       "refunded": false,
       "product_id": "",
       "payment_method_type": "UPI",
       "payment_method": "UPI",
       "payment_links": {
         "web": "https://sandbox.juspay.in/merchant/pay/ordeu_9a092980*******4d0206",
         "mobile": "https://sandbox.juspay.in/merchant/pay/ordeu_9a092980*******4d0206?mobile=true",
         "iframe": "https://sandbox.juspay.in/merchant/ipay/ordeu_9a092980*******4d0206"
       },
       "upi": {
           "txn_flow_type" : "INAPP",
           "bank_name": "HDFC bank",
           "bank_code": "HDFC",         
           "payer_vpa" : "customer@vpa",
           "payer_app" : "AXIS_UPI",
       },
       "payment_gateway_response":  {
            "resp_code": "00",
            "rrn": null,
            "created": "2021-08-17T13:44:21Z",
            "epg_txn_id": "YJP9999rv9999a99c19a4877ede7954984e",// Its the orgMandateId . Common ID between Juspay and NPCI .
            "resp_message": "Your transaction is successful",
            "auth_id_code": null,
            "txn_id": "eul7yc7TReHhAyNVsGp"
       },
       "payer_vpa" : "customer@vpa",
       "order_id": "2348******3498",
       "merchant_id": "juspay",
       "mandate": {
         "start_date": "1598745600",
         "rule_value": 30,
         "rule_type": "AFTER",
         "revokable_by_customer": true,
         "max_amount": 1000,
         "mandate_type": "EMANDATE",
         "mandate_token": "ad1d221******0f3",
         "mandate_status": "ACTIVE",
         "mandate_id": "3XMEcS******Ybzj", // common id between Groww and Juspay
         "frequency": "MONTHLY",
         "end_date": "160***10",
         "block_fund": false,
         "amount_rule": "VARIABLE"
       },
       "id": "ordeu_9a092980*******4d0206",
       "gateway_reference_id": "upimandate",
       "gateway_id": 514,
       "date_created": "2020-08-30T09:47:46Z",
       "customer_phone": "9999999999",
       "customer_id": "cst_lz*****okv",
       "customer_email": "customer@gmail.com",
       "currency": "INR",
       "bank_error_message": "",
       "bank_error_code": "",
       "amount_refunded": 0,
       "amount": 1
     }
   }
 }

// block:end:mandateCallback
```



---

## Complete Code Reference

The following code files are referenced in the steps above:

### P2MCallbacks.txt

```
// block:start:txnCreated

{
  "id": "evt_V2_5c08a08095ea4279ad28347241678c0b",
  "event_name": "TXN_CREATED",
  "date_created": "2022-01-28T09:14:52Z",
  "content": {
    "order": {
      "upi": {
        "txn_type": "UPI_INAPP",
        "payer_vpa": "8088219177@sliceaxis",
        "payer_app": "AXIS_BIZ",
        "bank_name": "MYPSP",
        "bank_code": "500001"
      },
      "txn_uuid": "eulwh64Rw6dQSNBUZUE",
      "txn_id": "slice-R7648276171-1",
      "txn_detail": {
        "txn_uuid": "eulwh64Rw6dQSNBUZUE",
        "txn_id": "slice-R7648276171-1",
        "txn_amount": 10000,
        "tax_amount": 0,
        "surcharge_amount": 0,
        "status": "PENDING_VBV",
        "redirect": true,
        "order_id": "R7648276171",
        "net_amount": 10000,
        "gateway_id": 514,
        "gateway": "YES_BIZ",
        "express_checkout": false,
        "error_message": "",
        "error_code": null,
        "currency": "INR",
        "created": "2022-01-28T09:14:52Z"
      },
      "status_id": 23,
      "status": "PENDING_VBV",
      "rewards_breakup": null,
      "return_url": "https://links.slicepay.in/repayments",
      "refunded": false,
      "product_id": "",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "payment_links": {
        "web": "https://sandbox.juspay.in/merchant/pay/ordeu_f07e1293e5684eb5ae815dbf6c998644",
        "mobile": "https://sandbox.juspay.in/merchant/pay/ordeu_f07e1293e5684eb5ae815dbf6c998644?mobile=true",
        "iframe": "https://sandbox.juspay.in/merchant/ipay/ordeu_f07e1293e5684eb5ae815dbf6c998644"
      },
      "payer_vpa": "8088219177@sliceaxis",
      "order_id": "R7648276171",
      "offers": [

      ],
      "metadata": null,
      "merchant_id": "slice",
      "id": "ordeu_f07e1293e5684eb5ae815dbf6c998644",
      "gateway_reference_id": null,
      "gateway_id": 514,
      "effective_amount": 10000,
      "date_created": "2022-01-28T09:14:51Z",
      "customer_phone": "",
      "customer_id": "8088219177",
      "customer_email": null,
      "currency": "INR",
      "bank_pg": null,
      "bank_error_message": "",
      "bank_error_code": "",
      "auth_type": "",
      "amount_refunded": 0,
      "amount": 10000
    }
  }
}

// block:end:txnCreated

// block:start:txnCharged

{
  "id": "evt_V2_0605110330aa49cea64215d095bf050b",
  "event_name": "TXN_CHARGED",
  "date_created": "2022-01-28T09:15:04Z",
  "content": {
    "txn": {
      "txn_uuid": "eulwh64Rw6dQSNBUZUE",
      "txn_id": "slice-R7648276171-1",
      "txn_amount": 10000,
      "tax_amount": 0,
      "surcharge_amount": 0,
      "status_id": 21,
      "status": "CHARGED",
      "redirect": true,
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "payment_gateway_response": {
        "txn_id": "eulwh64Rw6dQSNBUZUE",
        "rrn": "202814207184",
        "resp_message": "Your transaction is successful",
        "resp_code": "00",
        "epg_txn_id": "AXB22f8d0fafdf9455bb9d7b657c2ab14e4",
        "created": "2022-01-28T09:15:04Z",
        "auth_id_code": null
      },
      "order_id": "R7648276171",
      "net_amount": 10000,
      "gateway_id": 514,
      "gateway": "YES_BIZ",
      "express_checkout": false,
      "error_message": "",
      "error_code": "",
      "currency": "INR",
      "created": "2022-01-28T09:14:52Z"
    }
  }
}

// block:end:txnCharged

// block:start:orderSucceeded

{
  "id": "evt_V2_45dca165c3364d2db56f2df48fac2f7a",
  "event_name": "ORDER_SUCCEEDED",
  "date_created": "2022-01-28T09:15:04Z",
  "content": {
    "order": {
      "upi": {
        "txn_type" : "UPI_INAPP",
        "bank_name": "HDFC bank",
        "bank_code": "607689",
        "payer_vpa" : "customer@vpa",
        "payer_app" : "ABCD",
        "masked_bank_account_number": "XXXXXXXXX5678",
        "upi_bank_account_reference_id": "ABC12356789"
      },
      "txn_uuid": "eulx2nzeGu7MT56drQK",
      "txn_id": "azharamin-Juspay202_159-1",
      "txn_detail": {
        "txn_uuid": "eulx2nzeGu7MT56drQK",
        "txn_id": "azharamin-Juspay202_159-1",
        "txn_amount": 1,
        "tax_amount": null,
        "surcharge_amount": null,
        "status": "CHARGED",
        "order_id": "Juspay202_159",
        "offer_deduction_amount": null,
        "net_amount": 1,
        "gateway_id": 514,
        "gateway": "YES_BIZ",
        "express_checkout": false,
        "error_message": "",
        "error_code": null,
        "currency": "INR",
        "created": "2020-08-30T09:53:17Z",
        "redirect": true
     },
      "status_id": 21,
      "status": "CHARGED",
      "rewards_breakup": null,
      "return_url": "https://links.ABCD.in/repayments",
      "refunded": false,
      "product_id": "",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "payment_links": {
        "web": "https://api.juspay.in/merchant/pay/ordeu_f07e1293e5684eb5ae815dbf6c998644",
        "mobile": "https://api.juspay.in/merchant/pay/ordeu_f07e1293e5684eb5ae815dbf6c998644?mobile=true",
        "iframe": "https://api.juspay.in/merchant/ipay/ordeu_f07e1293e5684eb5ae815dbf6c998644"
      },
      "payment_gateway_response": {
        "resp_code": "00",
        "rrn": "443492753298",
        "network_error_code": null,
        "created": "2021-08-17T13:44:21Z",
        "epg_txn_id": "YJP9999rv9999a99c19a4877ede7954984e",
        "resp_message": "Your transaction is successful",
        "auth_id_code": null,
        "network_error_message": null,
        "txn_id": "eul7yc7TReHhAyNVsGp",
        "gateway_response": {
          "payeeMcc": "5816",
          "merchantId": "ABCD",
          "transactionTimestamp": "2024-03-08T16:05:12+05:30",
          "gatewayPayerResponseMessage": "FILTERED",
          "customResponse": "{}",
          "type": "MERCHANT_CREDITED_VIA_PAY",
          "gatewayReferenceId": "FILTERED",
          "gatewayPayerResponseCode": "FILTERED",
          "payerVpa": "customer@vpa",
          "refUrl": "https://www.juspay.com/",
          "gatewayResponseStatus": "SUCCESS",
          "payerAccRefId": "Ab7sd7v782342239",
          "gatewayResponseCode": "00",
          "merchantChannelId": "ABCDAPP",
          "payerActype": "SAVINGS",
          "payerIfsc": "ABCD1234",
          "payerName": "CUST",
          "payeeVpa": "ABCD@xyz",
          "gatewayTransactionId": "YJP9999rv9999a99c19a4877ede7954984e",
          "udfParameters": "{}",
          "gatewayResponseMessage": "Your transaction is successful",
          "payerMerchantCustomerId": "customer1",
          "merchantRequestId": "gameskraft-326UD9MKRU6OID5-1",
          "amount": "1.00"
        }
     },
     "merchant_id": "ABCD",
     "id": "ordeu_d002f7536b054b70be39b023976ab736",
     "gateway_reference_id": "111",
     "gateway_id": 514,
     "date_created": "2021-04-09T14:54:33Z",
     "customer_phone": "8867116657",
     "customer_id": "CUST",
     "customer_email": "CUST@mail",
     "currency": "INR",
     "bank_error_message": "",
     "bank_error_code": "",
     "amount_refunded": 0,
     "amount": 1
  },
      "payer_vpa": "customer@vpa",
      "order_id": "Juspay202_159",
      "offers": [

      ],
      "metadata": null,
      "merchant_id": "ABCD",
      "id": "ordeu_f07e1293e5684eb5ae815dbf6c998644",
      "gateway_reference_id": null,
      "gateway_id": 514,
      "effective_amount": 10000,
      "date_created": "2022-01-28T09:14:51Z",
      "customer_phone": "",
      "customer_id": "CUST",
      "customer_email": null,
      "currency": "INR",
      "bank_pg": null,
      "bank_error_message": "",
      "bank_error_code": "",
      "auth_type": "",
      "amount_refunded": 0,
      "amount": 1
    }
}


// block:end:orderSucceeded

// block:start:txnFailed

{
  "id": "evt_V2_311d1b273a084b06bfd957e01293f8ce",
  "event_name": "TXN_FAILED",
  "date_created": "2022-01-28T09:16:46Z",
  "content": {
    "txn": {
      "txn_uuid": "eul2PiJnWLDUnC9SKr2",
      "txn_id": "slice-R670115430-1",
      "txn_amount": 200001,
      "tax_amount": 0,
      "surcharge_amount": 0,
      "status_id": 26,
      "status": "AUTHENTICATION_FAILED",
      "redirect": true,
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "payment_gateway_response": {
        "txn_id": "eul2PiJnWLDUnC9SKr2",
        "rrn": "202814514190",
        "resp_message": "Bank is taking too long to respond. Please try again!",
        "resp_code": "U09",
        "epg_txn_id": "AXB961f2e31e3614bdca113b3a9959092cd",
        "created": "2022-01-28T09:16:46Z",
        "auth_id_code": null
      },
      "order_id": "R670115430",
      "net_amount": 200001,
      "gateway_id": 514,
      "gateway": "YES_BIZ",
      "express_checkout": false,
      "error_message": "Bank is taking too long to respond. Please try again!",
      "error_code": "U09",
      "currency": "INR",
      "created": "2022-01-28T09:16:23Z"
    }
  }
}

// block:end:txnFailed

// block:start:orderFailed

{
  "id": "evt_V2_adedb85fc8d7404ab5c044a25ca1303f",
  "event_name": "ORDER_FAILED",
  "date_created": "2022-01-28T09:16:46Z",
  "content": {
    "order": {
      "upi": {
        "txn_type": "UPI_INAPP",
        "payer_vpa": "8088219177@sliceaxis",
        "payer_app": "AXIS_BIZ",
        "bank_name": "MYPSP",
        "bank_code": "500001"
      },
      "txn_uuid": "eul2PiJnWLDUnC9SKr2",
      "txn_id": "slice-R670115430-1",
      "txn_detail": {
        "txn_uuid": "eul2PiJnWLDUnC9SKr2",
        "txn_id": "slice-R670115430-1",
        "txn_amount": 200001,
        "tax_amount": 0,
        "surcharge_amount": 0,
        "status": "AUTHENTICATION_FAILED",
        "redirect": true,
        "order_id": "R670115430",
        "net_amount": 200001,
        "gateway_id": 514,
        "gateway": "YES_BIZ",
        "express_checkout": false,
        "error_message": "Bank is taking too long to respond. Please try again!",
        "error_code": "U09",
        "currency": "INR",
        "created": "2022-01-28T09:16:23Z"
      },
      "status_id": 26,
      "status": "AUTHENTICATION_FAILED",
      "rewards_breakup": null,
      "return_url": "https://links.slicepay.in/repayments",
      "refunded": false,
      "product_id": "",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "payment_links": {
        "web": "https://sandbox.juspay.in/merchant/pay/ordeu_a9d8fc9ee3a9497da961537fc045f66e",
        "mobile": "https://sandbox.juspay.in/merchant/pay/ordeu_a9d8fc9ee3a9497da961537fc045f66e?mobile=true",
        "iframe": "https://sandbox.juspay.in/merchant/ipay/ordeu_a9d8fc9ee3a9497da961537fc045f66e"
      },
      "payment_gateway_response": {
        "txn_id": "eul2PiJnWLDUnC9SKr2",
        "rrn": "202814514190",
        "resp_message": "Bank is taking too long to respond. Please try again!",
        "resp_code": "U09",
        "gateway_response": {
          "merchantChannelId": "SLICEAPP",
          "amount": "200001.00",
          "merchantId": "SLICE",
          "gatewayResponseMessage": "Bank is taking too long to respond. Please try again!",
          "merchantRequestId": "eul2PiJnWLDUnC9SKr2",
          "gatewayResponseCode": "U09",
          "gatewayPayerResponseCode" : "00",
          "gatewayPayerResponseMessage" : "Your transaction is successful",
          "payerName" : "XXXX",
          "payerVpa" : "XXXX",
          "payerAccRefId" : "Ajwebfwfwbefiwefwhfwehfwoier",
          "payerActype" : "Savings",
          "gatewayReferenceId": "202814514190",
          "gatewayTransactionId": "AXB961f2e31e3614bdca113b3a9959092cd",
          "payeeVpa": "repayments@sliceaxis",
          "transactionTimestamp": "2022-01-28T14:46:20+05:30",
          "type": "MERCHANT_CREDITED_VIA_PAY"
        },
        "epg_txn_id": "AXB961f2e31e3614bdca113b3a9959092cd",
        "created": "2022-01-28T09:16:46Z",
        "auth_id_code": null
      },
      "payer_vpa": "8088219177@sliceaxis",
      "order_id": "R670115430",
      "offers": [

      ],
      "metadata": null,
      "merchant_id": "slice",
      "id": "ordeu_a9d8fc9ee3a9497da961537fc045f66e",
      "gateway_reference_id": null,
      "gateway_id": 514,
      "effective_amount": 200001,
      "date_created": "2022-01-28T09:16:22Z",
      "customer_phone": "",
      "customer_id": "8088219177",
      "customer_email": null,
      "currency": "INR",
      "bank_pg": null,
      "bank_error_message": "Bank is taking too long to respond. Please try again!",
      "bank_error_code": "U09",
      "auth_type": "",
      "amount_refunded": 0,
      "amount": 200001
    }
  }
}

// block:end:orderFailed



// block:start:mandateCallback

{
   "id": "evt_V2_4b83ba211443b53fc020d4c",
   "event_name": "ORDER_SUCCEEDED",
   "date_created": "2021-03-20T07:48:31Z",
   "content": {
     "order": {
       "txn_uuid": "eulmy******y1Syy",
       "txn_id": "juspay-2348******3498-1",
       "txn_detail": {
         "txn_uuid": "eulmy******y1Syy",
         "txn_object_type": "EMANDATE_REGISTER",
         "txn_id": "juspay-2348******3498-1",
         "txn_amount": 1,
         "tax_amount": null,
         "surcharge_amount": null,
         "status": "CHARGED",
         "source_object_id": "91887",
         "source_object": "MANDATE",
         "redirect": true,
         "order_id": "2348******3498",
         "net_amount": 1,
         "gateway_id": 514,
         "gateway": "YES_BIZ",
         "express_checkout": false,
         "error_message": "",
         "error_code": "",
         "currency": "INR",
         "created": "2020-08-30T09:53:17Z"
       },
       "status_id": 21,
       "status": "CHARGED",
       "refunded": false,
       "product_id": "",
       "payment_method_type": "UPI",
       "payment_method": "UPI",
       "payment_links": {
         "web": "https://sandbox.juspay.in/merchant/pay/ordeu_9a092980*******4d0206",
         "mobile": "https://sandbox.juspay.in/merchant/pay/ordeu_9a092980*******4d0206?mobile=true",
         "iframe": "https://sandbox.juspay.in/merchant/ipay/ordeu_9a092980*******4d0206"
       },
       "upi": {
           "txn_flow_type" : "INAPP",
           "bank_name": "HDFC bank",
           "bank_code": "HDFC",         
           "payer_vpa" : "customer@vpa",
           "payer_app" : "AXIS_UPI",
       },
       "payment_gateway_response":  {
            "resp_code": "00",
            "rrn": null,
            "created": "2021-08-17T13:44:21Z",
            "epg_txn_id": "YJP9999rv9999a99c19a4877ede7954984e",// Its the orgMandateId . Common ID between Juspay and NPCI .
            "resp_message": "Your transaction is successful",
            "auth_id_code": null,
            "txn_id": "eul7yc7TReHhAyNVsGp"
       },
       "payer_vpa" : "customer@vpa",
       "order_id": "2348******3498",
       "merchant_id": "juspay",
       "mandate": {
         "start_date": "1598745600",
         "rule_value": 30,
         "rule_type": "AFTER",
         "revokable_by_customer": true,
         "max_amount": 1000,
         "mandate_type": "EMANDATE",
         "mandate_token": "ad1d221******0f3",
         "mandate_status": "ACTIVE",
         "mandate_id": "3XMEcS******Ybzj", // common id between Groww and Juspay
         "frequency": "MONTHLY",
         "end_date": "160***10",
         "block_fund": false,
         "amount_rule": "VARIABLE"
       },
       "id": "ordeu_9a092980*******4d0206",
       "gateway_reference_id": "upimandate",
       "gateway_id": 514,
       "date_created": "2020-08-30T09:47:46Z",
       "customer_phone": "9999999999",
       "customer_id": "cst_lz*****okv",
       "customer_email": "customer@gmail.com",
       "currency": "INR",
       "bank_error_message": "",
       "bank_error_code": "",
       "amount_refunded": 0,
       "amount": 1
     }
   }
 }

// block:end:mandateCallback
```


---

## See Also

- [Transaction Failed](https://juspay.io/in/docs/upi-tpap-sdk/android/callbacks/transaction-failed)
- [Lite Topup](https://juspay.io/in/docs/upi-tpap-sdk/android/callbacks/lite-topup-callback)
