Registration & First Payment - DANA Recurring API
6 min
about registration & first payment dana recurring api nicepay api registration & first payment goal is for can registers and integrate with 's to first registration & first payment dana recurring api api endpoint /nicepay/api/danarecurring do request method \<font color="#3b9f0f">post \</font> form (parameter) description dana recurring merchant token sha256( timestamp + imid + txid + amt + merchantkey ) request parameter registration & first payment dana recurring api the following are list of s when requesting for registration and during dana recurring parameter type size description example / remark timestamp \<font color="#2166ae">required\</font> n 14 request date ( yyyymmddhh24miss ) 20211005123015 imid \<font color="#2166ae">required\</font> an 10 id ionpaytest paymethod \<font color="#2166ae">required\</font> an 2 method 05 currency \<font color="#2166ae">required\</font> an 3 currency idr amt \<font color="#2166ae">required\</font> n 12 amount 1000 referenceno \<font color="#2166ae">required\</font> ans 40 order number / trx id merchantreferencenumber001 goodsnm \<font color="#2166ae">required\</font> an 100 goods name will show in dana page goods 1 billingnm \<font color="#2166ae">required\</font> a 30 buyer name john doe billingphone \<font color="#2166ae">required\</font> n 15 buyer phone number 081234567891 billingemail \<font color="#2166ae">required\</font> an 40 buyer email buyer\@merchant com billingaddr an 100 buyer address billing address billingcity \<font color="#2166ae">required\</font> a 50 buyer city jakarta billingstate \<font color="#2166ae">required\</font> a 50 billing state jakarta billingpostcd \<font color="#2166ae">required\</font> n 10 billing post number 12345 billingcountry \<font color="#2166ae">required\</font> a 10 billing country deliverynm a 30 delivery name buyer name deliveryphone n 15 delivery phone number 081234567891 deliveryaddr an 100 delivery address billing address deliverycity a 50 delivery city jakarta deliverystate a 50 delivery state jakarta deliverypostcd n 10 delivery post number 12345 deliverycountry a 10 delivery country callbackurl \<font color="#2166ae">required\</font> an 255 callback url https //www nicepay co id/ionpay client/paymentresult jsp https //www nicepay co id/ionpay client/paymentresult jsp dbprocessurl \<font color="#2166ae">required\</font> an 255 notification url (async notification) https //ptsv2 com/t/nicepay dbproccessurl/post https //ptsv2 com/t/nicepay dbproccessurl/post description an 100 transaction description description merchanttoken \<font color="#2166ae">required\</font> an 255 token 6cfccfc0046773c1b589d8e98f8b596c284f3c70a4ecf86eba14c18944b74bcd userip \<font color="#2166ae">required\</font> an 15 user ip ( ) 127 0 0 1 usersessionid an 100 user session id usersessionid useragent an 100 user agent information mozilla userlanguage a 2 user language en us cartdata \<font color="#2166ae">required\</font> an 4000 cart data {string json format} mitracd \<font color="#2166ae">required\</font> a 4 mitra code dana recurrtype \<font color="#2166ae">required\</font> n 1 type of recurring 1 daily 2 weekly 3 monthly recurrintv \<font color="#2166ae">required\</font> n 2 time gap between subcriptions 1 recurrperiod \<font color="#2166ae">required\</font> n 2 total number of times subcriptions will made 2 sample parameter registration & first payment dana recurring api cartdata sample {"count" 1,"item" \[{"img url" "https //d3nevzfk7ii3be cloudfront net/igi/vorghxlovuka566a medium","goods name" "nokia 3360","goods detail" "old nokia 3360","goods amt" "1000","goods quantity" "1"}]} create recurring issue sample post /nicepay/api/danarecurring do http/1 1 host dev nicepay co id content type application/x www form urlencoded timestamp 20211005123015 imid\ ionpaytest paymethod 05 currency\ idr amt 1000 referenceno\ merchantreferencenumber001 goodsnm\ merchant subscription billingnm\ john doe billingemail\ buyer\@merchant com billingphone 081234567891 billingaddr\ billing address billingcity\ jakarta billingstate\ jakarta billingpostcd 12345 billingcountry\ indonesia deliverynm\ buyer name deliveryphone 081234567891 deliveryaddr\ billing address deliverycity\ jakarta deliverystate\ jakarta deliverypostcd 12345 deliverycountry\ indonesia callbackurl\ https //www nicepay co id/ionpay client/paymentresult jsp dbprocessurl\ https //ptsv2 com/t/nicepay dbproccessurl/post vat fee notaxamt description\ description userip 127 0 0 1 usersessionid\ usersessionid useragent\ mozilla userlanguage\ en us merchanttoken\ ab49212e792d7b50428e7b657674c188c32060870e93548dd613e8c42aa98686 cartdata {"count" 1,"item" \[{"img url" "https //d3nevzfk7ii3be cloudfront net/igi/vorghxlovuka566a medium","goods name" "nokia 3360","goods detail" "old nokia 3360","goods amt" "1000","goods quantity" "1"}]} mitracd\ dana reqdt reqtm reqdomain reqserverip reqclientver worker shopid msid msfee msfeetype escrowcl mbfee mbfeetype recurropt recurrtype 2 recurrintv 1 recurrperiod 2