NICEPAY API
...
Payment - API Checkout
E-Wallet - API Checkout
20 min
about e wallet api checkout this uses by s to request a to for using process flow general general e wallet flow flow description after the requests to the sends request using registration to sends response of regist to the sends to requests to the generates stores during s if is using ovo , then will send to related application to makes a if is using another (excluding ovo and astrapay), then will redirects to 's after that, must login using their related account before ing the sends to the receives the sends a to receives sends to the receives the requests a check to sends response of checking to the receives final the sends an confirmation to astrapay astrapay e wallet flow flow description during payments if doesn't have astrapay account yet the requests to the sends registration ( ) to sends account link request to astrapay astrapay receives request sent by astrapay sends response of redirect url to 's to sends response of 's redirect url to the displays registration to the s with account registration the sends account registration to astrapay astrapay validates account astrapay sends a to sends a to the sends a that account already registered to the requests to the requests ( ) to requests to astrapay astrapay generates astrapay sends response of redirect url to sends response of redirect url to the redirects to astrapay's the verifies the makes to astrapay astrapay performs verification astrapay sends a callback to sends response to displays response of callback to astrapay sends a to receives sends to the receives the requests a check to sends response to the receives final the updates to differences in checkout process flow (redirect) the has two different flows, namely asynchronous and synchronous in asynchronous flow, s need input credentials to enter 's application before making s meanwhile, for a synchronous , s don't need to input application's credentials first and can immediately make s via s sent to 's application the difference in these flows can be seen from two flows below asynchronous process flow asynchronous on the e wallet process flow flow description after checkout of the order the requests to the sends a request by using registration to sends response of registration to the requests to requests to the generates stores if uses another (excluding ovo and astrapay), then will redirect to 's the login to related account before making the sends to the receives the sends a to receives sends a to the receives the requests checking to sends a response of checking to the receives final the sends an confirmation to synchronous process flow synchronous on the e wallet process flow flow description after checkout of the order the requests to the sends a using registration to sends a response of regist to the sends to requests to the generates stores the (ovo) will send a to related application to make s the sends to the receives the sends a to receives sends s to the receives the requests checking to sends a response from checking to the receives final the sends an confirmation to nicepay secure payment page e wallet secure payment page the image above is a sample with an method using secure page e wallet secure payment page after of registration request completes, you can continue until settlement by following guidelines in docid\ ghv pfy7cev6hbcqrr t success secure payment page note for shopeepay and ovo , to provide a better user experience to , please give a warning message for to open via mobile devices api checkout transaction payment api url /nicepay/redirect/v2/payment request method redirect get header content type application/form urlencoded request parameter for e wallet 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 tniceew05100202212201020014087 note for shopeepay and ovo , to better user experience to , please request give a warning message for to open by mobile devices response parameter for e wallet api checkout (callbackurl) parameter type size description remark resultcd n 4 docid 7o8nl7guqp asiwfdqi3v 0000 resultmsg an 255 result message docid\ wpcemazro xvnxz 1zaib success txid an 30 transaction id ionpaytest00202212201351474222 when success referenceno ans 40 order number ordno20221220131215 when success paymethod e wallet, payloan e wallet, payloan n 2 docid\ iifmsruuw7j9vmwefjz97 05 when success amt n 12 transaction amount 5000 when success transdt only cc (additional) only cc (additional) n 8 transaction date ( yyyymmdd ) 20221220 when success transtm cc cc n 6 transaction time ( hh24miss ) 135201 when success mitracd direct debit, e wallet, payloan direct debit, e wallet, payloan a 4 docid\ tm257gq3dxgzf98uz0l33 dana when success callbackurl ans 255 result url https //webhook site/7bef799f ebe2 4328 a7b3 6d53deedca27 when success note response will be sent through callbackurl with content type application/json and method post parameter sample parameter for e wallet api checkout (callbackurl) on in , response from request that gets hit is callback url request parameter curl curl x get "https //www merchant com/callbackurl?resultcd=0000\&resultmsg=success\&txid=ionpaytest00202212201351474222\&referenceno=ordno20221220131215\&paymethod=05\&amt=5000\&transdt=20221220\&transtm=135201\&mitracd=dana\&callbackurl=https%3a%2f%2fwebhook site%2f7bef799f ebe2 4328 a7b3 6d53deedca27" callback parameter response callback resultcd=0000 resultmsg=success txid=ionpaytest00202212201351474222 referenceno=ordno20221220131215 paymethod=05 amt=5000 transdt=20221220 transtm=135201 mitracd=dana callbackurl=https //webhook site/7bef799f ebe2 4328 a7b3 6d53deedca27 callback handling api checkout transaction payment when your callback already received callbackurl , we recommended to do verification using docid 7thqvphz6emwezw5 d4an callback handling is very important to minimize fraud act, we highly recommend to do verification using callback parameter url callback https //www merchant com/callbackurl?resultcd=0000\&resultmsg=success\&txid=ionpaytest00202212201351474222\&referenceno=ordno20221220131215\&paymethod=05\&amt=5000\&transdt=20221220\&transtm=135201\&mitracd=dana\&callbackurl=https%3a%2f%2fwebhook site%2f7bef799f ebe2 4328 a7b3 6d53deedca27 response callback resultcd=0000 resultmsg=success txid=ionpaytest00202212201351474222 referenceno=ordno20221220131215 paymethod=05 amt=5000 transdt=20221220 transtm=135201 mitracd=dana callbackurl=https //webhook site/7bef799f ebe2 4328 a7b3 6d53deedca27