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 182,561,117 unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type request header parameter for registration api e wallet (direct debit) snap 134,73,81,123,172 true unhandled content type center unhandled content type center unhandled content type center unhandled content type unhandled content type unhandled content type unhandled content type center unhandled content type center unhandled content type center unhandled content type unhandled content type unhandled content type unhandled content type center unhandled content type center unhandled content type center unhandled content type unhandled content type unhandled content type unhandled content type center unhandled content type center unhandled content type center unhandled content type unhandled content type unhandled content type unhandled content type center unhandled content type center unhandled content type center unhandled content type unhandled content type unhandled content type unhandled content type center unhandled content type center unhandled content type center unhandled content type unhandled content type unhandled content type unhandled content type center unhandled content type center unhandled content type center unhandled content type unhandled content type unhandled content type unhandled content type center unhandled content type center unhandled content type center unhandled content type unhandled content type unhandled content type request body parameter for registration api e wallet (direct debit) snap 182,120,110,106,153,100 true unhandled content type center unhandled content type center unhandled content type center unhandled content type unhandled content type unhandled content type center unhandled content type center unhandled content type center unhandled content type unhandled content type unhandled content type center unhandled content type center unhandled content type center unhandled content type unhandled content type unhandled content type center unhandled content type center unhandled content type center unhandled content type unhandled content type unhandled content type center unhandled content type center unhandled content type center unhandled content type unhandled content type unhandled content type center unhandled content type center unhandled content type center unhandled content type unhandled content type unhandled content type center unhandled content type center unhandled content type center unhandled content type unhandled content type unhandled content type center unhandled content type center unhandled content type center unhandled content type unhandled content type unhandled content type center unhandled content type center unhandled content type center unhandled content type unhandled content type unhandled content type center unhandled content type center unhandled content type center unhandled content type unhandled content type unhandled content type center unhandled content type center unhandled content type center unhandled content type unhandled content type unhandled content type center unhandled content type center unhandled content type center unhandled content type unhandled content type unhandled content type center unhandled content type center unhandled content type center unhandled content type unhandled content type unhandled content type center unhandled content type center unhandled content type center unhandled content type unhandled content type unhandled content type center unhandled content type center unhandled content type center unhandled content type unhandled content type unhandled content type center unhandled content type center unhandled content type center unhandled content type unhandled content type unhandled content type center unhandled content type center unhandled content type center unhandled content type unhandled content type unhandled content type center unhandled content type center unhandled content type center unhandled content type unhandled content type unhandled content type center unhandled content type center unhandled content type center unhandled content type unhandled content type unhandled content type center unhandled content type center unhandled content type center unhandled content type unhandled content type unhandled content type center unhandled content type center unhandled content type center unhandled content type unhandled content type unhandled content type center unhandled content type center unhandled content type center unhandled content type unhandled content type unhandled content type center unhandled content type center unhandled content type center unhandled content type unhandled content type unhandled content type center unhandled content type center unhandled content type center unhandled content type unhandled content type unhandled content type center unhandled content type center unhandled content type center unhandled content type unhandled content type unhandled content type center unhandled content type center unhandled content type center unhandled content type unhandled content type unhandled content type center unhandled content type center unhandled content type center unhandled content type unhandled content type unhandled content type center unhandled content type center unhandled content type center unhandled content type unhandled content type response parameter for registration api e wallet (direct debit) snap 175,80,111,86,200,100 true unhandled content type center unhandled content type center unhandled content type center unhandled content type unhandled content type unhandled content type center unhandled content type center unhandled content type center unhandled content type unhandled content type unhandled content type center unhandled content type center unhandled content type center unhandled content type unhandled content type unhandled content type center unhandled content type center unhandled content type center unhandled content type unhandled content type unhandled content type center unhandled content type center unhandled content type center unhandled content type unhandled content type unhandled content type center unhandled content type center unhandled content type center unhandled content type unhandled content type unhandled content type center unhandled content type center unhandled content type center unhandled content type unhandled content type unhandled content type center unhandled content type center unhandled content type center unhandled content type unhandled content type unhandled content type center unhandled content type center unhandled content type center unhandled content type unhandled content type 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" } }