NICEPAY API
API Version 2 (V2)
Authentication
10 min
authentication process authentication is an security procedure to recognize identity of a foreign request if identity is recognized by , then request can access in this case, first requires an key identity called merchantkey from your request so you can connect with without any obstacles apart from merchantkey , you are also required to send mandatory , namely merchanttoken merchant key keys are divided into two types, namely sandbox credentials and production credentials sandbox credentials if you want to test our first before carrying out with , please use following credentials provided below using imid ionpaytest imid is an identity or your id as a on imid that is only devoted to your usage will be given after you officially register as our to perform , please use imid ionpaytest and specific key in sandbox credentials imid (merchant id) (merchant id) ionpaytest (autopaid) merchantkey 33f49gncms1mfylgxisbudzvf2atwcl9k3r++d5hdd3frmuos/xlx8xhxpe+ldyabpgkzyswtlyylots/8ad7a== the credentials above are provided for purposes only and will be made successful automatically (autopaid) production/live credentials if you are already registered as a and want to perform stage with real s, you can view merchantkey that we specifically created with your imid in portal docid\ s2zo71iysoasepjtevvn7 here are steps to get merchantkey access your docid\ s2zo71iysoasepjtevvn7 dashboard a docid 0sj7jmnwelem0erwc5ho9 a docid\ nb vvz we7tfpvae q bw tab other scroll down to get your merchantkey don't forget to include imid according to registered imid for your when integrating with us merchant token merchanttoken uses by to proceed security authentication with this was created using sha 256 hashing method that includes s imid , merchantkey along with other variables needed here are details of token //generate merchanttoken// merchantdata = timestamp + imid + refno + amount + merchantkey; mertok = cryptojs sha256(merchantdata) tostring(cryptojs enc hex); sample merchantdata = 20221202101271 + ionpaytest + ordno 20221202101271 + 100000 + 33f49gncms1mfylgxisbudzvf2atwcl9k3r++d5hdd3frmuos/xlx8xhxpe+ldyabpgkzyswtlyylots/8ad7a== mertok = d7c10cfccd64fdb21836f4330bb23f9ed357bc4b02420399d48b4661b89a55a0 parameter type size description timestamp n 14 transaction timestamp ( yyyymmddhhmmss) imid an 10 id refno ans 40 's reference number amount n 12 amount merchantkey ans 88 key nicepay api url here's url you can use according to your needs this url must be requested via https protocol to connect with us environment protocol base url development https https //dev nicepay co id/ staging https https //staging nicepay co id/ production https https //www nicepay co id/ payment method testing after you got all authentication requirements that can interact with our , please visit below to test with our s payment method credential credit card docid 2focrf187wmmssoaih3mb virtual account docid\ j 3a7xe6q 2tn8a5gcvjv convenience store docid\ uwt1vzzlvtcndnwemm0mr direct debit docid 9lg6vxg1smifzr4nqi1 f e wallet docid\ obca35upc pltziltbrpa payloan docid\ fjbpvqodhmmuio 0mapii gpn docid\ ygbhonzjx g4c v3sc3g1 qris docid\ oyhpaefp8i5jksh3zmq l payout docid gewjzqlroidk21h yakj see also docid\ gwko d7n1xnzuouj7xlvd to find out how to test by using postman docid\ ndxoeregy9jswxl7rgp9c to find out used sdk on