---
page_source: https://juspay.io/in/docs/upi-tpap-direct-sdk/flutter/headless-process-payloads/p2m-pay
page_title: P2M Pay
---


## P2M Pay



This operation will enable customers to pay for the order.


###   Process Parameters



## Request Payload
- **RequestId**:
  - Description: Unique uuid-v4 string
  - Value: Example: abcd-12345-abcd-12345
  - Tags: String, Mandatory
- **Service**:
  - Description: Value: in.juspay.hyperapi
  - Tags: String, Mandatory
- **Payload**:
  - Description: Parameters required to call Hyper SDK API
  - Value:
    - **Action**:
      - Description: Operation to be performed in the SDK. Should be upiTxn for this call.
      - Value: Value: upiTxn
      - Tags: String, Mandatory
    - **Signature**:
      - Description: Base 64 encoding of signaturePayload and Protected .
      - Tags: String, Mandatory
    - **Protected**:
      - Description: Base 64 encoding of the below parameters.
      - Value:
        - **Kid**:
          - Description: Key ID to identify the public-private key pair used for signature generation.It will be provided to you by the Juspay team.
          - Value: Example: uat833359804655bb748702e324111
          - Tags: String, Mandatory
        - **Alg**:
          - Description: Asymmetric algorithm used. Will be RS256 in this case..
          - Value: RS256
          - Tags: String, Mandatory
      - Tags: String, Mandatory
    - **AccountRefId**:
      - Description: Reference ID for selected account
      - Value: Example: ABC123456789
      - Tags: String, Mandatory
    - **SignaturePayload**:
      - Description: Signature payload is a stringified JSON of the details mentioned in the below table.
      - Value:
        - **MerchantId**:
          - Description: Unique identifier associated with an account created by juspay.
          - Value: Example: stock
          - Tags: String, Mandatory
        - **MerchantCustomerId**:
          - Description: Merchant generated unique profile id for the customer.
          - Value: Example: ABC123456789
          - Tags: String, Mandatory
        - **Amount**:
          - Description: Amount to be paid. Numeric String with two decimals
          - Value: Example: 2.00
          - Tags: String, Mandatory
        - **MerchantRequestId**:
          - Description: Merchant generated unique request Id for the transaction.
          - Value: Example: 1234567890
          - Tags: String, Mandatory
        - **MerchantVpa**:
          - Description: VPA of the merchant.
          - Value: Example: abc@xyz
          - Tags: String, Mandatory
        - **Timestamp**:
          - Description: Time when request is created in milliseconds.
          - Value: Example: 1665996901100
          - Tags: String, Mandatory
      - Tags: String, Mandatory
  - Tags: JSON, Mandatory


## Response Payload
- **RequestId**:
  - Description: Unique uuid-v4 string
  - Value: Example: abcd-12345-abcd-12345
  - Tags: String
- **Service**:
  - Description: Value: in.juspay.hyperapi
  - Tags: String
- **Payload**:
  - Description: Response Parameters
  - Value:
    - **Action**:
      - Description: Operation performed in the SDK.
      - Value: Value: upiTxn
      - Tags: String
    - **Status**:
      - Description: Status of the Operation. Possible values : SUCCESS, PENDING, FAILURE
      - Value: Example: SUCCESS
      - Tags: String
    - **TxnUuid**:
      - Value: Example: 417711456403
      - Tags: String
    - **SelectedAccount**:
      - Description: Selected account
      - Value:
        - **Account**:
          - Description: Account linked to this vpa
          - Value:
            - **AtmPinLength**:
              - Description: Length of atm pin
              - Tags: String
            - **BankAccountUniqueId**:
              - Description: Unique Identifier for bank account across banks
              - Tags: String
            - **BankCode**:
              - Description: IIN Code for the bank
              - Tags: String
            - **BankName**:
              - Description: Name of branch in which account is registered
              - Tags: String
            - **Ifsc**:
              - Description: Account IFSC
              - Tags: String
            - **IsPrimary**:
              - Description: Is this account the primary account
              - Value: true / false
              - Tags: boolean
            - **MaskedAccountNumber**:
              - Description: Account Number with last few digits visible
              - Tags: String
            - **MpinLength**:
              - Description: Length of mpin
              - Tags: String
            - **MpinSet**:
              - Description: Is mpin set
              - Value: true / false
              - Tags: boolean
            - **Name**:
              - Description: Name of account holder
              - Tags: String
            - **OtpLength**:
              - Description: Length of OTP
              - Tags: String
            - **ReferenceId**:
              - Tags: String
            - **Type**:
              - Description: Type of account
              - Tags: String
          - Tags: String
        - **Vpa**:
          - Description: Vpa of the customer
          - Tags: String
      - Tags: String
  - Tags: JSON
- **Error**:
  - Description: Possible values :- true/false
  - Tags: Boolean
- **ErrorMessage**:
  - Description: Error Message
  - Tags: String
- **ErrorCode**:
  - Description: Error Code
  - Tags: String
- **Event**:
  - Description: Value: process_result
  - Tags: String





#### Code Snippets: -

#### Java Code Snippet:

```java
{"success":false,"message":"No Data found for the given path"}
```

#### Kotlin Code Snippet:

```kotlin
{"success":false,"message":"No Data found for the given path"}
```
