NICEPAY API
...
API Convenience Store
Notification - API Convenience Store
6 min
tentang api convenience store notification mengirimkan push notification dikirim melalui dbprocessurl harus memastikan tidak melakukan blacklist ip dan melakukan whitelist ip untuk mendapatkan push notification hanya dikirim dari server request method post post merchant token sha256 ( imid + txid + amt + merchantkey ) ip ip public environtment production 103 20 51 34 103 20 51 33 ip public environtment dev 103 20 51 39 103 20 51 40 user agent user agent jakarta commons httpclient/3 1 notification parameter convenience store ketika diterima pada dbprocessurl , kami menyarankan dengan sangat kepada untuk melakukan verifikasi kembali menggunakan docid\ ypivnumvfvrkikzinnq48 parameter tipe ukuran deskripsi contoh / catatan txid n 30 transaction id tnicecv03103202212141459041632 merchanttoken an 255 token 8b5565e793731a1a1c8817c9e42bcbbdc3f5fb6a2785a6e0b19a2d5e3a41a51b referenceno ans 40 order number ord0123456 mitracd a 4 docid\ tm257gq3dxgzf98uz0l33 alma paymethod n 2 docid\ iifmsruuw7j9vmwefjz97 04 payno n 20 number 504100002539 payvalidtm n 6 cvs expiry time ( hh24miss ) null payvaliddt n 8 cvs expiry date ( yyyymmdd ) (cvs) null amt n 12 amount 5000 clientuserkey mandatory if tokenize mandatory if tokenize an 100 user key, must be unique for each 1134431 usertoken ans user token 12345eea9 6234 6789 12r3 123re3456tt5 tokenizeuser n 1 transaction tokenize type 1 transdt n 8 transaction date 20221214 transtm n 6 transaction time 150229 currency a 3 currency idr goodsnm an 100 goods name testing billingnm a 100 billing name john doe matchcl n 1 payment flag docid wbzuzhpbdoycdehlbbx9 1 status a 1 deposit status docid\ ucni27ufonck8 zttm mv 0 deposit 1 reversal 0 instmnttype n 2 docid\ rt2c32s9hfl aohyoebv5 1 instmntmon n 2 installment month 1 merchant token diterima dari notification , harus melakukan perbandingan kembali secara internal untuk mencegah palsu/tidak berlaku 💡contoh kasus misalnya, memiliki merchantkey digunakan untuk melakukan generate token, yaitu 1234 ketika merchanttoken di generate diketahui adalah abcd , sementara merchanttoken didapatkan pada adalah abdd , maka tersebut dianggap palsu/tidak berlaku sample for convenience store notification sample post for convenience store notification merchanttoken=8b5565e793731a1a1c8817c9e42bcbbdc3f5fb6a2785a6e0b19a2d5e3a41a51b goodsnm=testing referenceno=ord0123456 mitracd=alma transtm=150229 txid=tnicecv03103202212141459041632 amt=5000 instmnttype=1 billingnm=john doe matchcl=1 payno=504100002539 payvalidtm=null paymethod=03 currency=idr instmntmon=1 payvaliddt=null transdt=20221214 status=0