NICEPAY API
...
API E-Wallet
AstraPay Registration - API E-Wallet
10 min
tentang api for e wallet astrapay registration terdapat beberapa perbedaan khusus untuk {{api}} {{ewallet}} astrapay seperti pada {{bagian}} {{api}} url dan {{merchant}} token tahap tahap {{integrasi}} pada {{ewallet}} pada umumnya adalah sama namun terdapat perbedaan signifikan pada {{integrasi}} {{ewallet}} astrapay khusus registrasi dan payment astrapay, silakan kunjungi {{halaman}} docid\ s0p2o wpdjn3n94lpkcyh dan docid\ g3smjmfdga4mbw0wlhzga untuk mengetahui {{proses}} pada {{ewallet}} lain api for e wallet astrapay registration {{api}} {{ewallet}} astrapay registration digunakan supaya {{merchant}} dapat menghubungkan akun {{ewallet}} astrapay dengan {{sistem}} {{yang}} telah disediakan dari {{nicepay}} sehingga, {{sistem}} {{pembayaran}} {{yang}} sudah disediakan dan di host dari sisi {{merchant}} dapat ter {{integrasi}} dengan {{sistem}} dari {{nicepay}} {{api}} berikut dapat digunakan untuk {{ewallet}} astrapay api endpoint /nicepay/api/linkenable do request method pop up, redirect, submit pop up, redirect, submit description connecting account to {{nicepay}} header content type application/form merchant token sha256 ( imid + referenceno + billingphone + merchantkey ) request format application/json {{api}} ini hanya dapat diterapkan untuk {{ewallet}} astrapay {{silakan}} kunjungi {{halaman}} docid\ nwzv2nuzg8xixncgf0fwb untuk mengetahui {{api}} {{integrasi}} khusus {{pembayaran}} {{ewallet}} astrapay request parameter for e wallet astrapay registration berikut ini adalah daftar {{parameter}} untuk melakukan request registrasi {{metodebayar}} {{ewallet}} astrapay request regist menggunakan {{api}} call form url parameter ini digunakan melalui platform pengujian {{api}} sebagai salah satu tahapan supaya {{sistem}} milik {{merchant}} dapat terhubung dengan {{layanan}} dari {{nicepay}} parameter tipe ukuran deskripsi contoh / catatan timestamp required required n 14 request timestamp ( yyyymmddhh24miss ) 20220101123456 imid required required an 10 {{merchant}} id test {{ewallet}} referenceno required required ans 40 {{merchant}} 's reference number ord12345 paymethod n 2 docid\ iifmsruuw7j9vmwefjz97 05 billingnm required required a 100 buyer name john doe billingphone required required n 15 buyer phone number 082111111111 billingemail required required ans 40 buyer e mail email\@merchant com mitracd required required a 4 docid\ tm257gq3dxgzf98uz0l33 astr dbprocessurl required required ans 255 notification url https //merchant com/api/dbprocessurl/notif merchanttoken required required an 255 {{merchant}} token 6cfccfc0046773c1b589d8e 98f8b596c284f3c70a4ecf8 6eba14c18944b74bcd description an 100 transaction description test transaction userip required required an 15 user ip address 127 0 0 1 returnjsonformat an 100 return json format usersessionid {{silakan}} kunjungi docid\ ijbzxzkxctritccmseikb untuk mempelajari {{informasi}} terkait {{metodebayar}} {{ewallet}} response parameter for e wallet astrapay registration berikut adalah response parameter dari hasil request parameter untuk mendaftarkan {{metodebayar}} {{ewallet}} astrapay parameter tipe ukuran deskripsi contoh / catatan resultcd n 4 docid 7o8nl7guqp asiwfdqi3v 0000 resultmsg an 255 result message docid\ wpcemazro xvnxz 1zaib success txid an 30 transaction id ionpaytest05202212121533119647 referenceno ans 40 {{merchant}} reference number ncpy20221212153313 paymethod n 2 docid\ iifmsruuw7j9vmwefjz97 05 amt n 12 {{paymentproduct}} amount null transdt n 8 transaction date ( yyyymmdd ) 20221212 transtm n 6 transction time ( hh24miss ) 153313 mitracd a 4 docid\ tm257gq3dxgzf98uz0l33 astr paymentexpdt n 6 qr {{paymentproduct}} expiry date ( yyyymmdd ) null paymentexptm n 6 qr {{paymentproduct}} expiry time ( hh24miss ) null redirecturlhttp ans 255 redirect to {{mitra}} page https //sandbox astrapay com/merchant service/link?clientid=1baf55ad 2130 4d46 bf48 91b0b01004a1\&merchantuserid=2212124f0ccbef5a913058 redirecturlapp an 100 redirect url apps null redirecttoken an 100 redirect token null sample json for e wallet astrapay registration form urlencode request timestamp={timestamp} imid={imid} referenceno={referenceno} paymethod={paymethod} billingnm={billingnm} billingphone={billingphone} billingemail={billingemail} callbackurl={callbackurl} dbprocessurl={dbprocessurl} description={description} merchanttoken={merchanttoken} userip={userip} mitracd={mitracd} returnjsonformat={returnjsonformat} json response { "resultcd" "0000", "resultmsg" "success", "txid" "ionpaytest05202212121533119647", "referenceno" "ncpy20221212153313", "paymethod" "05", "amt" null, "transdt" "20221212", "transtm" "153313", "mitracd" "astr", "paymentexpdt" null, "paymentexptm" null, "redirecturlhttp" "https //sandbox astrapay com/merchant service/link?clientid=1baf55ad 2130 4d46 bf48 91b0b01004a1\&merchantuserid=2212124f0ccbef5a913058", "redirecturlapp" null, "redirecttoken" null } java request // ewallet astrapay registration // // ewallet astrapay registration mandatory field nicepay settimestamp("20220101123456"); nicepay setimid("testewallet"); nicepay setpaymethod("05"); nicepay setcurrency("idr"); nicepay setamt("10000"); nicepay setreferenceno("ord12345"); nicepay setbillingnm("john doe"); nicepay setbillingphone("082111111111"); nicepay setbillingemail("email\@merchant com"); nicepay setdescription("test transaction"); nicepay setcallbackurl("https //merchant com/api/dbprocessurl/notif"); nicepay setdbprocessurl("https //merchant com/api/dbprocessurl/notif"); nicepay setmitracd("astr"); nicepay setmerchanttoken(nicepay maketoken(nicepay getmerchanttoken())); // request ewallet astrapay registration nicepay ewalletregist(); // response string // system out println("final response string " + nicepay getresponsestring()); string resultcd = nicepay get("resultcd"); string resultmsg = nicepay get("resultmsg"); string txid = nicepay get("txid"); string referenceno = nicepay get("referenceno"); string paymethod = nicepay get("paymethod"); string amt = nicepay get("amt"); string transdt = nicepay get("transdt"); string transtm = nicepay get("transtm"); string mitracd = nicepay get("mitracd"); string paymentexpdt = nicepay get("paymentexpdt"); string paymentexptm = nicepay get("paymentexptm"); string redirecturlhttp = nicepay get("redirecturlhttp"); string redirecturlapp = nicepay get("redirecturlapp"); string redirecttoken = nicepay get("redirecttoken"); callback handling e wallet astrapay registration callback handling pada registrasi {{ewallet}} didapatkan dalam bentuk url setelah sukses melakukan registrasi url callback https //www nicepay co id/ionpay client/paymentresult jsp?string=\&resultcd=0000\&resultmsg=success\&txid=ionpaytest05202212151804213115\&mandateid=ionpaytest085695655721\&referenceno=ord20221215181255\&paymethod=05\&transdt=20221215\&transtm=180517\&mitracd=astr