Use the below endpoint to Process Payment Wallet.

Request Parameters:

Attribute

Type

Details

wallet_code*

string

wallet_code is the unique identifier of the wallet on which the wallet transaction is intended. wallet_code can be taken from the codes table.

mobile_number

string
(Length = 20 Characters)

Mobile number of the customer

country_code

string
(Length = 10 Characters)

The country code of the mobile number of the customer. Country code for India is 91.

mobile_number

string
(Length = 20 Characters)

Mobile number of the customer

email_id

string
(Length = 100 Characters)

Email id of the cusotmer.

Request Body payload:

{
    "wallet_data": {
        "wallet_code": "phonepe",
        "mobile_number": "9121004027"
    },
    "customer_data": {
        "country_code": "91",
        "mobile_number": "9121004027",
        "email_id": "[email protected]"
    }
}

Response Payload:

{
    "content": "<!doctype html>\n<html style="height:100%;width:100%;">\n<head>\n<title>Processing, Please Wait...</title>\n<meta http-equiv="X-UA-Compatible" content="IE=edge">\n<meta charset="utf-8">\n<meta name="viewport" content="width=device-width, initial-scale=1">\n<meta name="theme-color" content="#3594E2">\n<script>\ntry{\n  var payment_id = "pay_Ix0KPLrd0HzAHf";\n  if (typeof(CheckoutBridge) !== 'undefined' && typeof(CheckoutBridge.setPaymentID) === 'function') {\n    CheckoutBridge.setPaymentID(payment_id);\n  } else if(window.opener){\n  opener.setPaymentID(payment_id);\n  }\n} catch(e){}\n</script>\n<script>\n  var events = {\n    page: 'gateway_postform',\n    props: {\n          payment_id: 'pay_Ix0KPLrd0HzAHf',\n              merchant_id: 'DcIpvz549ymVaY',\n        },\n    load: true,\n    unload: true\n  }\n</script>\n<script>\n!function(e){e.track=Boolean;try{if(/razorpay\\.in$/.test(location.origin))return;if("object"!=typeof e.events)return;var n=e.events.props;if(0===Object.keys(n).length)return;var t,o=e.events,r=o.page,a=o.load,s=o.unload,i=o.error,c="https://lumberjack.razorpay.com/v1/track",u="MC40OTMwNzgyMDM3MDgwNjI3Nw9YnGzW",p="function"==typeof navigator.sendBeacon,d=Date.now(),f=[{name:"ua_parser",input_key:"user_agent",output_key:"user_agent_parsed"}];function l(e,o){(o=o||{}).beacon=p,o.time_since_render=Date.now()-d,o.url=location.href,function(e,n){if(e&&n)Object.keys(n).forEach(function(t){e[t]=n[t]})}(o,n);var a={addons:f,events:[{event:r+":"+e,properties:o,timestamp:Date.now()}]},s=encodeURIComponent(btoa(unescape(encodeURIComponent(JSON.stringify(a))))),i=JSON.stringify({key:u,data:s});p?navigator.sendBeacon(c,i):((t=new XMLHttpRequest).open("post",c,!0),t.send(i))}a&&l("load"),s&&e.addEventListener("unload",function(){l("unload")}),i&&e.addEventListener("error",function(e){l("error",{message:e.message,line:e.line,col:e.col,stack:e.error&&e.error.stack})})}catch(e){}e.track=l}(window);\n</script>\n\n<style>\n*{\n  box-sizing:border-box;\n  margin:0;\n  padding:0;\n}\n\nbody{\n  background:#f5f5f5;\n  overflow:hidden;\n  text-align:center;\n  height:100%;\n  white-space:nowrap;\n  margin:0;\n  padding:0;\n  font-family:-apple-system, BlinkMacSystemFont,ubuntu,verdana,helvetica,sans-serif;\n}\n\n#bg {\n  position:absolute;\n  bottom:50%;\n  width:100%;\n  height:50%;\n  background:#3594E2;\n  margin-bottom:90px;\n}\n#cntnt {\n  position:relative;\n  width:100%;\n  vertical-align: middle;\n  display: inline-block;\n  margin: auto;\n  max-width:420px;\n  min-width:280px;\n  height:95%;\n  max-height:360px;\n  background:#fff;\n  z-index:9999;\n  box-shadow:0 0 20px 0 rgba(0,0,0,0.16);\n  border-radius:4px;\n  overflow:hidden;\n  padding:24px;\n  box-sizing:border-box;\n  text-align:left;\n}\n#ftr {\n  position:absolute;\n  left:0;\n  right:0;\n  bottom:0;\n  height:80px;\n  background:#f5f5f5;\n  text-align:center;\n  color:#212121;\n  font-size:14px;\n  letter-spacing:-0.3px;\n  }\n\n#ldr {\n  width:100%;\n  height:3px;\n  position:relative;\n  margin-top:16px;\n  border-radius:3px;\n  overflow:hidden;\n}\n\n#ldr::before, #ldr::after {\n  content:'';\n  position:absolute;\n  top:0;\n  bottom:0;\n  width:100%;\n}\n\n#ldr::before {\n  top:1px;\n  border-top:1px solid #bcbcbc;\n}\n\n#ldr::after {\n  background:#3594E2;\n  width:0%;\n  transition:20s cubic-bezier(0,0.1,0,1);\n}\n\n.loaded #ldr::after {\n  width:90%;\n}\n\n#logo {\n  width:48px;\n  height:48px;\n  padding:8px;\n  border:1px solid #e5e5e5;\n  border-radius:3px;\n  text-align:center;\n}\n\n#hdr {\n  min-height:48px;\n  position:relative;\n}\n\n#logo, #name, #amt {\n  display:inline-block;\n  vertical-align:middle;\n  letter-spacing:-0.5px;\n}\n\n#amt {\n  position:absolute;\n  right:0;\n  top:0;\n  background:#fff;\n  color:#212121;\n}\n\n#name {\n  line-height:48px;\n  margin-left:12px;\n  font-size:16px;\n  max-width:140px;\n  overflow:hidden;\n  text-overflow:ellipsis;\n  color:#212121;\n}\n\n#logo+#name{\n  line-height:20px;\n}\n\n#txt {\n  height:200px;\n  text-align:center;\n}\n\n#title {\n  font-size:20px;\n  line-height:24px;\n  margin-bottom:8px;\n  letter-spacing:-0.3px;\n}\n\n#msg, #cncl {\n  font-size:14px;\n  line-height:20px;\n  color:#757575;\n  margin-bottom:8px;\n  letter-spacing:-0.3px;\n}\n\n#cncl {\n  text-decoration:underline;\n  cursor:pointer;\n}\n\n#logo img {\n  max-width:100%;\n  max-height:100%;\n  vertical-align:middle;\n}\n\[email protected] (max-height:580px), (max-width:420px) {\n  #bg{\n     display:none;\n  }\n  body {\n    background:#3594E2;\n  }\n}\n\[email protected] (max-width:420px){\n  #cntnt {\n    padding:16px;\n    width:95%;\n  }\n  #name {\n    margin-left:8px;\n  }\n}\n</style>\n</head>\n<body onload="document.form1.submit()">\n  <div id='bg'></div>\n  <div style="display:inline-block;vertical-align:middle;height:100%"></div>\n  <div id='cntnt'>\n    <div id="hdr">\n            <div id='name'>\n                  Test\n              </div>\n              <div id="amt">\n          <div style="font-size:12px;color:#757575;line-height:15px;margin-bottom:5px;text-align:right">PAYING</div>\n          <div style="font-size:20px;line-height:24px;">₹ 5</div>\n        </div>\n          </div>\n    <div id="ldr"></div>\n    <div id="txt">\n      <div style="display:inline-block;vertical-align:middle;white-space:normal;">\n        <h2 id='title'>Loading Bank page…</h2>\n        <p id='msg'>Please wait while we redirect you to your Bank page</p>\n      </div>\n      <div style="display:inline-block;vertical-align:middle;height:100%"></div>\n    </div>\n    <div id='ftr'>\n      <div style="display:inline-block;">Secured by <img style="vertical-align:middle;margin-bottom:5px;" height="20px" src=https://dashboard-activation.s3.amazonaws.com/org_100000razorpay/checkout_logo/phpgGkcfA></div>\n      <div style="display:inline-block;vertical-align:middle;height:100%"></div>\n    </div>\n  </div>\n  <form id="form1" name="form1" action="https://api.razorpay.com/v1/gateway/mocksharp/payment?key_id=rzp_test_i00i1DaqSdP1bj" method="post" onsubmit="return true;">\n      <input type="hidden" name="action" value="authorize">\n      <input type="hidden" name="amount" value="500">\n      <input type="hidden" name="method" value="wallet">\n      <input type="hidden" name="payment_id" value="Ix0KPLrd0HzAHf">\n      <input type="hidden" name="callback_url" value="https://api.razorpay.com/v1/payments/pay_Ix0KPLrd0HzAHf/callback/b336ff52cc5daf051414a4ea8dbe8d4b2d07a3e4/rzp_test_i00i1DaqSdP1bj">\n      <input type="hidden" name="recurring" value="0">\n    </form>\n  <form id="form2" name="form2">\n    <input type="hidden" name="type" value="first">\n    <input type="hidden" name="gateway" value="eyJpdiI6IjVFbjJXWWRyTk03aWhOekYwZHlRU0E9PSIsInZhbHVlIjoic2syQjFrYlZHTzNDRFwvTDR6TXZQSkxtVm5XakxZMEdcLzNVRHRuTXUrNjJvPSIsIm1hYyI6IjYzNjI1MTQ4ODE0MjczNThhZjE2ODQxNzBkNjEwYzRiNjNkMWY1OGFhOTQ1YWU1ZTFmYzBjOGUyYjUzYjY5ZjYifQ==">\n  </form>\n  <script>\n    setTimeout(function() {\n      document.body.className = 'loaded';\n    }, 10);\n\n    setTimeout(function(){\n      document.getElementById('title').innerHTML = 'Still trying to load...';\n      document.getElementById('msg').innerHTML = 'The bank page is taking time to load.';\n    }, 10000);\n  </script>\n</body>\n</html>\n",
    "payment_id": 1014397,
    "order_id": 34594,
    "amount_in_paise": 500,
    "response_code": 1,
    "response_message": "Payment Successful!"
}
{
    "error_code": "-1",
    "error_message": "Sorry, your transaction has failed."
}
Language
Authentication
Basic
base64
:
Click Try It! to start a request and see the response here!