NICEPAY API
...
API E-Wallet (Direct Debit) SN...
Registration - API E-Wallet (Direct Debit) SNAP
11 min
about registration api e wallet (direct debit) snap this api uses to request registration before executing payment using the e wallet payment method with direct debit host to host feature based on the snap bi standard registration api e wallet (direct debit) snap please request the access token firsthand before doing the authentication through the docid 92feymrqs iebhxrfgxuq section service code 54 api endpoint /nicepay/api/v1 0/debit/payment host to host https //dev nicepay co id/nicepay/api/v1 0/debit/payment host to host http method post description request direct debit transaction for authentication payment content type application/json request header parameter for registration api e wallet (direct debit) snap parameter type length required description example content type string 127 mandatory content type, value always application/json authorization string variable mandatory bearer “ accesstoken ” x timestamp string 25 mandatory using iso 8601 as timestamp format transaction date time, in format yyyymmddthh\ mm\ ss+07 00 time must be in gmt+7 (jakarta time) 2022 03 21t10 11 40+07 00 x signature string variable mandatory signature will be generated by merchant docid\ uzex33relyenkogbjjnyp x partner id string 20 mandatory unique partner id, partner id = client id x external id string 40 mandatory unique messaging reference id generated by merchant numeric string reference number that should be unique in every transaction channel id string 5 mandatory unique channel merchant credential id number client id + "01" = channel id "ionpaytest" + "01" = "ionpaytest01" ionpaytest01 request body parameter for registration api e wallet (direct debit) snap parameter type required length description or example partnerreferenceno string mandatory 40 transaction id from merchant merchantid string mandatory 10 merchant identifier that is unique per each merchant submerchantid string optional 32 sub merchant identifier externalstoreid string optional 32 unique identifier of shop id in client system amount array of json object mandatory variable amount information "amount" { "value" "12345678 00", "currency" "idr" }, value string mandatory 12 transaction amount, including thecents currency string mandatory 3 currency code based on iso urlparam array of json object mandatory variable notify url that merchant must send the payment notification "urlparam" \[ { }, { } ] url string mandatory 512 indicates the url of the client’s app to redirect back to once payment has been completed in merchant merchant accepts http links and url scheme formats type string mandatory 32 indicates the type of the sent url only accepts ‘ pay return ” and ‘ pay notify ” value isdeeplink string mandatory 1 indicates whether the url is a deep link or not, only accepts ‘y’ value validupto string optional 25 the time when the payment will be automatic only expired iso 8601, in yyyy mmddthh format mm\ ss+07 00 time must be in gmt+7 (jakarta time) pointofinitiation string optional 20 used for getting more info regarding source of request of the user additionalinfo array of json object optional variable additional information "additionalinfo" { } mitracd string mandatory 4 docid 6go07owr b22bafuetehl example ovo ovoe link aja link dana dana shopeepay eshp goodsnm string mandatory 200 goods name billingnm string mandatory 100 buyer name billingphone string mandatory 20 buyer phone number billingemail string optional 40 buyer e mail callbackurl string mandatory 500 payment result forward url (on browser) dbprocessurl string mandatory 500 payment notification url (async notification) cartdata string mandatory 4000 {json format} msid string optional 20 merchant seller id msfee string optional 7 merchant seller fee msfeetype string optional 2 merchant seller fee type mbfee string optional 7 merchant balance fee mbfeetype string optional 2 merchant balance fee type response parameter for registration api e wallet (direct debit) snap parameter type required length description or example responsecode string mandatory 7 refer to docid\ bjr4kjamzcknln 5zrnvw list responsemessage string mandatory 150 refer to docid\ bjr4kjamzcknln 5zrnvw list partnerreferenceno string mandatory 40 merchant transaction identifier referenceno string mandatory 40 original transaction identifier on service provider system appredirecturl string optional 2048 returns an url scheme to payment page in native app for shopeepay, this value will be deprecated for shopeepay, this value will be deprecated webredirecturl string optional 2048 partner checkout url additionalinfo string optional variable additional information "additionalinfo" { } redirecttoken string optional 255 partner checkout token sample parameter for registration api e wallet (direct debit) snap request parameter curl curl x post \\ 'https //dev nicepay co id/nicepay/api/v1 0/debit/payment host to host' \\ h 'content type application/json' \\ h 'authorization bearer eyj0exaioijkv1qilcjhbgcioijiuzi1nij9 eyjzdwiioijjt05qqvlurvnuiiwiaxnzijoitkldrvbbwsisim5hbwuioijcukloiiwizxhwijoimjaync0wmi0xmvqwodowotoznvoifq== aiyblx36dywffvw7dcoenxkoe2eawiyq84ztpuif3k8=' \\ h 'x timestamp 2024 12 31t10 11 40+07 00' \\ h 'x signature ufbw7r8rhw79ioiv/hlv607m60qzaybv8uzmbsryb6/thlo/fhqvp4xryeluehoss9o+qs6vwtkb/ygtucc+tq==' \\ h 'x partner id tniceew051' \\ h 'x external id txid202402111402271707638099' \\ h 'channel id tniceew051' \\ d '{"partnerreferenceno" "2020102900000000000001","merchantid" "tniceew05","submerchantid" "310928924949487","amount" {"value" "12345678 00","currency" "idr"},"urlparam" \[{"url" "https //test1 bi go id/v1/test","type" "pay notify","isdeeplink" "y"},{"url" "https //test2 bi go id/v1/test","type" "pay return","isdeeplink" "y"}],"externalstoreid" "239840198240795109","validupto" "2020 12 23t07 44 11+07 00","pointofinitiation" "mobile app","additionalinfo" {"mitracd" "dana","goodsnm" "merchant goods 1","billingnm" "buyer name","billingphone" "02112345678","billingemail" "jhondoe\@gmail com","callbackurl" "http //www merchant com/callback","dbprocessurl" "http //www merchant com/notification","cartdata" "{\\"count\\" \\"2\\",\\"item\\" \[{\\"img url\\" \\"http //img aaa com/ima1 jpg\\",\\"goods name\\" \\"item 1 name\\",\\"goods detail\\" \\"item 1 detail\\",\\"goods amt\\" \\"0 00\\",\\"goods quantity\\" \\"1\\"},{\\"img url\\" \\"http //img aaa com/ima2 jpg\\",\\"goods name\\" \\"item 2 name\\",\\"goods detail\\" \\"item 2 detail\\",\\"goods amt\\" \\"12345678 00\\",\\"goods quantity\\" \\"1\\"}]}","msid" "","msfee" "","msfeetype" "","mbfee" "","mbfeetype" ""}}' node js const partner id = "tniceew051"; const x external id = "txid202402111402271707638099"; const x timestamp = "2024 12 31t10 11 40+07 00"; const channel id = "tniceew051"; const config = { isproduction false, privatekey cons privatekey, clientsecret cons clientsecret, clientid partner id, iscloudserver false, }; const access token = "eyj0exaioijkv1qilcjhbgcioijiuzi1nij9 eyjzdwiioijjt05qqvlurvnuiiwiaxnzijoitkldrvbbwsisim5hbwuioijcukloiiwizxhwijoimjaync0wmi0xmvqwodowotoznvoifq== aiyblx36dywffvw7dcoenxkoe2eawiyq84ztpuif3k8="; const parameter = { body { partnerreferenceno "2020102900000000000001", merchantid partner id, submerchantid "310928924949487", amount { value "12345678 00", currency "idr" }, urlparam \[ { url "https //test1 bi go id/v1/test", type "pay notify", isdeeplink "y" }, { url "https //test2 bi go id/v1/test", type "pay return", isdeeplink "y" } ], externalstoreid "239840198240795109", validupto "2020 12 23t07 44 11+07 00", pointofinitiation "mobile app", additionalinfo { mitracd "dana", goodsnm "merchant goods 1", billingnm "buyer name", billingphone "02112345678", billingemail "jhondoe\@gmail com", callbackurl "http //www merchant com/callback", dbprocessurl "http //www merchant com/notification", cartdata "{\\"count\\" \\"2\\",\\"item\\" \[{\\"img url\\" \\"http //img aaa com/ima1 jpg\\",\\"goods name\\" \\"item 1 name\\",\\"goods detail\\" \\"item 1 detail\\",\\"goods amt\\" \\"0 00\\",\\"goods quantity\\" \\"1\\"},{\\"img url\\" \\"http //img aaa com/ima2 jpg\\",\\"goods name\\" \\"item 2 name\\",\\"goods detail\\" \\"item 2 detail\\",\\"goods amt\\" \\"12345678 00\\",\\"goods quantity\\" \\"1\\"}]}", msid "", msfee "", msfeetype "", mbfee "", mbfeetype "" } }, headers { x timestamp x timestamp, x partner id partner id, x external id x external id, channel id channel id, }, }; let snap = new snap(config); let endpoint = `/api/v1 0/debit/payment host to host`; // updated endpoint let response = snap requestsnaptransaction(parameter, endpoint, access token, "post");final string partner id = "tniceew051"; // adjusted from tniceew05 final string external id = "txid202402111402271707638099"; final string timestamp = "2024 12 31t10 11 40+07 00"; final string access token = "eyj0exaioijkv1qilcjhbgcioijiuzi1nij9 eyjzdwiioijjt05qqvlurvnuiiwiaxnzijoitkldrvbbwsisim5hbwuioijcukloiiwizxhwijoimjaync0wmi0xmvqwodowotoznvoifq== aiyblx36dywffvw7dcoenxkoe2eawiyq84ztpuif3k8="; // step 1 configuration (using hardcoded values) config = nicepay builder() isproduction(false) iscloudserver(false) clientsecret("your client secret") partnerid(partner id) externalid(external id) timestamp(timestamp) privatekey("your private key") build(); // step 2 define the request body (ewallet model repurposed for debit h2h) ewallet ewallet = ewallet builder() partnerreferenceno("2020102900000000000001") merchantid(partner id) submerchantid("310928924949487") externalstoreid("239840198240795109") validupto("2020 12 23t07 44 11+07 00") pointofinitiation("mobile app") amount("12345678 00", "idr") additionalinfo( new hashmap\<string, object>() {{ put("mitracd", "dana"); put("goodsnm", "merchant goods 1"); put("billingnm", "buyer name"); put("billingphone", "02112345678"); put("billingemail", "jhondoe\@gmail com"); put("callbackurl", "https //test1 bi go id/v1/test"); put("dbprocessurl", "https //test1 bi go id/v1/test"); put("cartdata", "{\\"count\\" \\"2\\",\\"item\\" \[{\\"img url\\" \\"http //img aaa com/ima1 jpg\\",\\"goods name\\" \\"item 1 name\\",\\"goods detail\\" \\"item 1 detail\\",\\"goods amt\\" \\"0 00\\",\\"goods quantity\\" \\"1\\"},{\\"img url\\" \\"http //img aaa com/ima2 jpg\\",\\"goods name\\" \\"item 2 name\\",\\"goods detail\\" \\"item 2 detail\\",\\"goods amt\\" \\"12345678 00\\",\\"goods quantity\\" \\"1\\"}]}"); put("msid", ""); put("msfee", ""); put("msfeetype", ""); put("mbfee", ""); put("mbfeetype", ""); }}) urlparam(new string\[]\[]{ {"https //test1 bi go id/v1/test", "pay notify", "y"}, {"https //test2 bi go id/v1/test", "pay return", "y"} }) build(); // step 3 execute the request (removed dynamic token fetching) nicepayresponse response = snapewalletservice callserviceewalletpayment(ewallet, access token, config); bodycreatetoken = ( builderaccesstoken buildaccesstoken() setgranttype("client credentials") setadditionalinfo({}) build() ) amount = { "value" "12345678 00", "currency" "idr" } urlparam = \[ { "url" "https //test1 bi go id/v1/test", "type" "pay notify", "isdeeplink" "y" }, { "url" "https //test2 bi go id/v1/test", "type" "pay return", "isdeeplink" "y" } ] additionalinfo = { "mitracd" "dana", "goodsnm" "merchant goods 1", "billingnm" "buyer name", "billingphone" "02112345678", "billingemail" "jhondoe\@gmail com", "callbackurl" "http //www merchant com/callback", "dbprocessurl" "http //www merchant com/notification", "cartdata" '{"count" "2","item" \[{"img url" "http //img aaa com/ima1 jpg","goods name" "item 1 name","goods detail" "item 1 detail","goods amt" "0 00","goods quantity" "1"},{"img url" "http //img aaa com/ima2 jpg","goods name" "item 2 name","goods detail" "item 2 detail","goods amt" "12345678 00","goods quantity" "1"}]}', "msid" "", "msfee" "", "msfeetype" "", "mbfee" "", "mbfeetype" "" } bodydirectdebit = ( builderdirectdebit builddirectdebit() setpartnerreferenceno("2020102900000000000001") setmerchantid("tniceew051") setsubmerchantid("310928924949487") setexternalstoreid("239840198240795109") setvalidupto("2020 12 23t07 44 11+07 00") setpointofinitiation("mobile app") setamount(amount) seturlparam(urlparam) setadditionalinfo(additionalinfo) build() ) environment = (builderenvironment buildenvironment() iscloud(false) isproduction(false) build()) result = snapservice servicetransaction(bodycreatetoken jsonaccesstoken(), bodydirectdebit jsondirectdebit(), constantsendpoints directdebit(), environment) c# // c# host to host debit payment snippet (tniceew051) // hardcoded access token const string access token = "eyj0exaioijkv1qilcjhbgcioijiuzi1nij9 eyjzdwiioijjt05qqvlurvnuiiwiaxnzijoitkldrvbbwsisim5hbwuioijcukloiiwizxhwijoimjaync0wmi0xmvqwodowotoznvoifq== aiyblx36dywffvw7dcoenxkoe2eawiyq84ztpuif3k8="; // assuming privatekey, clientid, timestamp, isproduction, iscloudserver are defined/loaded elsewhere // define urlparams in a variable as requested var urlparams = new list\<dictionary\<string, object>> { new dictionary\<string, object> { { "url", "https //test1 bi go id/v1/test" }, { "type", "pay notify" }, { "isdeeplink", "y" } }, new dictionary\<string, object> { { "url", "https //test2 bi go id/v1/test" }, { "type", "pay return" }, { "isdeeplink", "y" } } }; string signature = signaturegeneratorutils generatesignature(privatekey, "tniceew051", "2024 12 31t10 11 40+07 00"); // create ewallet service (using updated parameters) apiendpoints apiendpoints = new apiendpoints(); apiservice ewalletservice = new apiservice(apiendpoints, clientsecret, "tniceew051", "tniceew051", isproduction, iscloudserver); var bodybuilder = new ewalletbuilder() setewalletsnap( partnerreferenceno "2020102900000000000001", merchantid "tniceew051", externalstoreid "239840198240795109", value "12345678 00", currency "idr", submerchantid "310928924949487", validupto "2020 12 23t07 44 11+07 00", mitracd "dana", goodsnm "merchant goods 1", billingnm "buyer name", billingphone "02112345678", urlparam urlparams, // used the variable here cartdata "{\\"count\\" \\"2\\",\\"item\\" \[{\\"img url\\" \\"http //img aaa com/ima1 jpg\\",\\"goods name\\" \\"item 1 name\\",\\"goods detail\\" \\"item 1 detail\\",\\"goods amt\\" \\"0 00\\",\\"goods quantity\\" \\"1\\"},{\\"img url\\" \\"http //img aaa com/ima2 jpg\\",\\"goods name\\" \\"item 2 name\\",\\"goods detail\\" \\"item 2 detail\\",\\"goods amt\\" \\"12345678 00\\",\\"goods quantity\\" \\"1\\"}]}", dbprocessurl "http //www merchant com/notification", callbackurl "http //www merchant com/callback", msid "", msfee "", msfeetype "", mbfee "", mbfeetype "", pointofinitiation "mobile app" ) build(); string jsonpayload = jsonconvert serializeobject(bodybuilder); string createresponse = await ewalletservice sendpostrequest(apiendpoints paymentewallet, access token, "2024 12 31t10 11 40+07 00", bodybuilder, "txid202402111402271707638099"); laravel protected $useprod = false; protected $usecloud = false; protected $payment host to host endpoint = "/api/v1 0/debit/payment host to host"; protected $client id = "tniceew051"; protected $key = " private key merchant"; protected $client secret = " client secret merchant"; protected $access token = "eyj0exaioijkv1qilcjhbgcioijiuzi1nij9 eyjzdwiioijjt05qqvlurvnuiiwiaxnzijoitkldrvbbwsisim5hbwuioijcukloiiwizxhwijoimjaync0wmi0xmvqwodowotoznvoifq== aiyblx36dywffvw7dcoenxkoe2eawiyq84ztpuif3k8="; protected $store id = "239840198240795109"; $url = httputil getnicepaydomain($this >useprod, $this >usecloud) $this >payment host to host endpoint; $helper = new helpers(); $http method = "post"; $x time stamp = "2024 12 31t10 11 40+07 00"; $partner id = "tniceew051"; $client secret = $this >client secret; $access token = $this >access token; $store id = $this >store id; $external id = "txid202402111402271707638099"; $channel id = "tniceew051"; $body = \[ "partnerreferenceno" => "2020102900000000000001", "merchantid" => $partner id, "submerchantid" => "310928924949487", "amount" => \[ "value" => "12345678 00", "currency" => "idr" ], "urlparam" => \[ \[ "url" => "https //test1 bi go id/v1/test", "type" => "pay notify", "isdeeplink" => "y" ], \[ "url" => "https //test2 bi go id/v1/test", "type" => "pay return", "isdeeplink" => "y" ] ], "externalstoreid" => $store id, "validupto" => "2020 12 23t07 44 11+07 00", "pointofinitiation" => "mobile app", "additionalinfo" => \[ "mitracd" => "dana", "goodsnm" => "merchant goods 1", "billingnm" => "buyer name", "billingphone" => "02112345678", "billingemail" => "jhondoe\@gmail com", "callbackurl" => "http //www merchant com/callback", "dbprocessurl" => "http //www merchant com/notification", "cartdata" => '{"count" "2","item" \[{"img url" "http //img aaa com/ima1 jpg","goods name" "item 1 name","goods detail" "item 1 detail","goods amt" "0 00","goods quantity" "1"},{"img url" "http //img aaa com/ima2 jpg","goods name" "item 2 name","goods detail" "item 2 detail","goods amt" "12345678 00","goods quantity" "1"}]}', "msid" => "", "msfee" => "", "msfeetype" => "", "mbfee" => "", "mbfeetype" => "" ] ]; $string to sign = $helper >generatestringtosign( $http method, $this >payment host to host endpoint, $access token, $body, $x time stamp ); $signature = $helper >hmacsha512encoded( $string to sign, $client secret, openssl algo sha512 ); $header = $helper >generateheader( $access token, $x time stamp, $signature, $partner id, $external id, $channel id ); try { $response = httputil postjsonrequestwithheader($url, $body, $header); } catch (exception $e) { // handle exception } php native $this >configsnap = nicepay builder() >setisproduction(false) >setclientsecret(" your client secret ") >setpartnerid("tniceew051") >setexternalid("txid202402111402271707638099") >settimestamp("2024 12 31t10 11 40+07 00") >setprivatekey(" your private key ") >build(); $requestbody = ewallet builder() >partnerreferenceno("2020102900000000000001") >merchantid("tniceew051") >submerchantid("310928924949487") >externalstoreid("239840198240795109") >validupto("2020 12 23t07 44 11+07 00") >pointofinitiation("mobile app") >amount("12345678 00", "idr") >additionalinfo( \[ "mitracd" => "dana", "goodsnm" => "merchant goods 1", "billingnm" => "buyer name", "billingphone" => "02112345678", "billingemail" => "jhondoe\@gmail com", "callbackurl" => "http //www merchant com/callback", "dbprocessurl" => "http //www merchant com/notification", "cartdata" => '{"count" "2","item" \[{"img url" "http //img aaa com/ima1 jpg","goods name" "item 1 name","goods detail" "item 1 detail","goods amt" "0 00","goods quantity" "1"},{"img url" "http //img aaa com/ima2 jpg","goods name" "item 2 name","goods detail" "item 2 detail","goods amt" "12345678 00","goods quantity" "1"}]}', "msid" => "", "msfee" => "", "msfeetype" => "", "mbfee" => "", "mbfeetype" => "" ] ) >urlparam(\[ \["https //test1 bi go id/v1/test", "pay notify", "y"], \["https //test2 bi go id/v1/test", "pay return", "y"] ]) >build(); $accesstoken = "eyj0exaioijkv1qilcjhbgcioijiuzi1nij9 eyjzdwiioijjt05qqvlurvnuiiwiaxnzijoitkldrvbbwsisim5hbwuioijcukloiiwizxhwijoimjaync0wmi0xmvqwodowotoznvoifq== aiyblx36dywffvw7dcoenxkoe2eawiyq84ztpuif3k8="; $ewalletservice = new snapewalletservice($this >configsnap); try { $response = $ewalletservice >paymentewallet($requestbody, $accesstoken); } catch (\exception $e) { // handle exception }// hardcoded access token const val access token = "eyj0exaioijkv1qilcjhbgcioijiuzi1nij9 eyjzdwiioijjt05qqvlurvnuiiwiaxnzijoitkldrvbbwsisim5hbwuioijcukloiiwizxhwijoimjaync0wmi0xmvqwodowotoznvoifq== aiyblx36dywffvw7dcoenxkoe2eawiyq84ztpuif3k8=" // step 1 initialize the nicepay configuration var config nicepay = nicepay builder() isproduction(false) clientsecret("your client secret") partnerid("tniceew05") externalid("txid202402111402271707638099") timestamp("2024 12 31t10 11 40+07 00") privatekey("your private key") build() // step 2 define the static request body val ewallet = snapewallet builder() partnerreferenceno("2020102900000000000001") merchantid("tniceew05") submerchantid("310928924949487") externalstoreid("239840198240795109") validupto("2020 12 23t07 44 11+07 00") pointofinitiation("mobile app") amount("12345678 00", "idr") additionalinfo( mapof( "mitracd" to "dana", "goodsnm" to "merchant goods 1", "billingnm" to "buyer name", "billingphone" to "02112345678", "billingemail" to "jhondoe\@gmail com", "callbackurl" to "http //www merchant com/callback", "dbprocessurl" to "http //www merchant com/notification", "cartdata" to "{\\"count\\" \\"2\\",\\"item\\" \[{\\"img url\\" \\"http //img aaa com/ima1 jpg\\",\\"goods name\\" \\"item 1 name\\",\\"goods detail\\" \\"item 1 detail\\",\\"goods amt\\" \\"0 00\\",\\"goods quantity\\" \\"1\\"},{\\"img url\\" \\"http //img aaa com/ima2 jpg\\",\\"goods name\\" \\"item 2 name\\",\\"goods detail\\" \\"item 2 detail\\",\\"goods amt\\" \\"12345678 00\\",\\"goods quantity\\" \\"1\\"}]}", "msid" to "", "msfee" to "", "msfeetype" to "", "mbfee" to "", "mbfeetype" to "" ) ) urlparam( arrayof( arrayof("https //test1 bi go id/v1/test", "pay notify", "y"), arrayof("https //test2 bi go id/v1/test", "pay return", "y") ) ) build() // step 3 execute the request val response = snapewalletservice paymenthosttohost(ewallet, access token, config) codeigniter const string access token = "eyj0exaioijkv1qilcjhbgcioijiuzi1nij9 eyjzdwiioijjt05qqvlurvnuiiwiaxnzijoitkldrvbbwsisim5hbwuioijcukloiiwizxhwijoimjaync0wmi0xmvqwodowotoznvoifq== aiyblx36dywffvw7dcoenxkoe2eawiyq84ztpuif3k8="; $config = nicepay builder() >setisproduction(false) >setiscloudserver(iscloudserver true) >setprivatekey(" your private key ") >setclientsecret(" your client secret ") >setpartnerid("tniceew051") >setexternalid("txid202402111402271707638099") >settimestamp("2024 12 31t10 11 40+07 00") >build(); $urlparam = \[ \["https //test1 bi go id/v1/test", "pay notify", "y"], \["https //test2 bi go id/v1/test", "pay return", "y"] ]; $requestbody = ewallet builder() >setpartnerreferenceno("2020102900000000000001") >setmerchantid("tniceew051") >setsubmerchantid("310928924949487") >setexternalstoreid("239840198240795109") >setvalidupto("2020 12 23t07 44 11+07 00") >setpointofinitiation("mobile app") >setamount("12345678 00", "idr") >setadditionalinfo( \[ "mitracd" => "dana", "goodsnm" => "merchant goods 1", "billingnm" => "buyer name", "billingphone" => "02112345678", "billingemail" => "jhondoe\@gmail com", "callbackurl" => "http //www merchant com/callback", "dbprocessurl" => "http //www merchant com/notification", "cartdata" => '{"count" "2","item" \[{"img url" "http //img aaa com/ima1 jpg","goods name" "item 1 name","goods detail" "item 1 detail","goods amt" "0 00","goods quantity" "1"},{"img url" "http //img aaa com/ima2 jpg","goods name" "item 2 name","goods detail" "item 2 detail","goods amt" "12345678 00","goods quantity" "1"}]}', "msid" => "", "msfee" => "", "msfeetype" => "", "mbfee" => "", "mbfeetype" => "" ] ) >seturlparam($urlparam) >build(); $snapewalletservice = new snapewalletservice(); try { $response = $snapewalletservice >paymentewallet($requestbody, access token, $config); } catch (\exception $e) { // handle exception } response parameter sample response { "responsecode" "2005400", "responsemessage" "successful", "partnerreferenceno" "2020102900000000000001", "referenceno" "tniceew05105202210141451109841", "webredirecturl" "https //pjsp com/universal?bizno=ref993883& ", "additionalinfo" { "redirecttoken" " df548fff93e82aad9174c657820a85aa5d10042535157c7e89f52499" } }