NICEPAY API
...
Payment - API Checkout
Direct Debit - API Checkout
15 min
about direct debit api checkout this uses by to requests to for using process flow direct debit payment flow steps description the requests to the will register by using registration to save regist redirect to the displays 's to the chooses the input data (jenius cashtag) the sends selected to requests to s with authentication sends authentication to the performs authentication the requests charge to does sends result to sends push to validates updates sends a to the requests checking by using status to sends response to the receives final the sends confirmation update to nicepay secure payment page secure payment page the image above is a sample with method using secure page direct debit secure payment page after selecting method , you will be redirected to to select desired next, you will be redirected to form to enter your identity in example above, if you choose jenius , you will be asked to enter your cashtag data in form provided after completing form, you can continue then, you can until is successful success secure payment page the of registration request has been completed you can continue until settlement by following guidelines in docid\ epxddufll2lbzpb5lekho api checkout transaction payment api url /nicepay/redirect/v2/payment request method redirect get header content type application/form urlencoded request parameter for direct debit api checkout (callbackurl) parameter type size description remark paymenturl required required ans 14 url https //dev nicepay co id/nicepay/redirect/v2/payment txid required required an 30 transaction id ionpaytest00202203211640309389 response parameter for direct debit api checkout (callbackurl) parameter type size description remark status n 1 docid\ allhyf9mj hw8 mpz4tmu 0 merchanttoken an 255 token 46ca2f8a7b0b24ad57e49f879764718e40839f67d00c22b3f79ba328f2a0a8aa when success goodsnm direct debit, e wallet, payloan direct debit, e wallet, payloan an 100 goods name jhon+doe when success billingnm direct debit, e wallet, payloan direct debit, e wallet, payloan a 100 billing name jhon+doe when success referenceno ans 40 order number ord20230525090536 when success mitracd direct debit, e wallet, payloan direct debit, e wallet, payloan a 4 docid\ tm257gq3dxgzf98uz0l33 jenc when success txid an 30 transaction id tnicecp04100202305250918306465 when success amt n 12 transaction amount 5000 when success receiptcode ans 20 authorization number 951527524097 when success instmnttype n 2 docid\ wfsinjxqc2s9yubbybpep 2 when success instmntmon n 2 installment month 1 1 month/full , if instmnttype null/1 3 3 months 6 6 months 12 12 months 1 when success matchcl n 1 docid yqqe4ju5bjurdxkxdtho 0 when success mrefno an 18 reference number 202305250918303 when success paymethod n 2 docid\ iifmsruuw7j9vmwefjz97 04 when success currency a 3 currency idr when success note response will be sent through callbackurl with content type application/json and method post parameter sample parameter for direct debit api checkout (callbackurl) on when , response from request that got hit is a callback url request parameter curl curl x get "https //www merchant com/callbackurl?resultcd=0000\&resultmsg=please+do+payment+on+jenius+pay+apps\&txid=tnicecp04100202305250918306465\&referenceno=ord20230525090536\&amt=\&transdt=20230525\&transtm=091830" callback parameter response callback merchanttoken=46ca2f8a7b0b24ad57e49f879764718e40839f67d00c22b3f79ba328f2a0a8aa goodsnm=jhon+doe referenceno=ord20230525090536 mitracd=jenc txid=tnicecp04100202305250918306465 amt=5000 receiptcode=951527524097 instmnttype=2 billingnm=jhon+doe matchcl=0 mrefno=202305250918303 paymethod=04 currency=idr instmntmon=1 status=0 callback handling api checkout payment when your callback already received callbackurl , we recommended to do verification using docid\ tsmzvn ulka6hnmbkk5wl callback handling is necessary to minimize fraud actions we strongly recommend to verify using callback parameter url callback https //merchant com/callback nicepay?resultcd=0000\&resultmsg=please+do+payment+on+jenius+pay+apps\&txid=ionpaytest00202212211034026581\&referenceno=order20221012080918\&amt=\&transdt=20221221\&transtm=103402 response callback merchanttoken=46ca2f8a7b0b24ad57e49f879764718e40839f67d00c22b3f79ba328f2a0a8aa goodsnm=jhon+doe referenceno=ord20230525090536 mitracd=jenc txid=tnicecp04100202305250918306465 amt=5000 receiptcode=951527524097 instmnttype=2 billingnm=jhon+doe matchcl=0 mrefno=202305250918303 paymethod=04 currency=idr instmntmon=1 status=0