COD Transactions
Step 1
Get Payment Methods
This operation retrieves information about all the available payment methods available for the merchant through Juspay. Consume CASH payment method detail from the response and display them on the Checkout page.
Step 2
COD Txn
This operation helps the merchant to route the transaction via CASH gateway and transaction will directly marked as “COD_INITIATED”
Request
requestId
*
String
Mandatory
Unique uuid-v4 string
Example: abcd-12345-abcd-12345
service
*
String
Mandatory
Value: in.juspay.hyperapi
payload
*
JSON
Mandatory
Parameters required to call Hyper SDK API
action
*
String
Mandatory
Must be codTxn for COD Process calls.
orderId
*
String
Mandatory
order id pertaining to the order for which the payment is started.
paymentMethod
*
String
Mandatory
Must be CASH
clientAuthToken
*
String
Mandatory
Required for client side authentication

