Mohon untuk memperhatikan parameterpaymentType dari responseonePassToken.do. Ini akan diperlukan tahap selanjutnya untuk menentukan menggunakan 3Ds atau MiGS.
paymentType
Deskripsi
1
3D Secure
2
KeyIn (Proceed to Registration without 3Ds / MiGS)
3
MiGS
3Ds Request
Gunakan API ini jika mendapatkan paymentType = 1 dari responseonePassToken.do.
Langkah-langkah 3Ds:
Kirim Request Parameter ke 3Ds Request API.
Pembeli akan redirect ke halaman 3Ds.
Pembeli input OTP.
NICEPAY akan mengirimkan Response Parameter ke callbackUrl.
MiGS (Mastercard Internet Gateway Service) adalah sebuah layanan dari Mastercard untuk melakukan pengembalian dana dan memantau laporan transaksi berdasarkan transaksi antara Merchant dan Pelanggan.
Saat ini, NICEPAY menggunakan MPGS (Mastercard Payment Gateway Service) yang merupakan versi terbaru dari MiGS untuk meningkatkan keamanan transaksi dengan fitur 3Ds 2.0. Meskipun demikian, API MiGS masih dapat digunakan dalam sistem MPGS.
Gunakan API ini jika mendapatkan paymentType = 3 dari responseonePassToken.do.
Langkah-langkah:
Kirim Request Parameter ke MiGS Request API.
Pembeli akan redirect ke halaman MiGS.
Pembeli input OTP.
NICEPAY akan mengirimkan Response Parameter ke callbackUrl.
Mendaftarkan Transaksi dan melakukan Charge Credit Card menggunakan onePassToken
Merchant Token
SHA256 (iMid+ referenceNo+ amt+ merchantKey)
Payment Methods
01Credit Card
Request Parameter - Credit Card Payment
Sample Request Payment
Sample Java Request Credit Card
1iMid:"IONPAYTEST"2payMethod:"01"3currency:"IDR"4amt:"10000"5referenceNo:"MerchantReferenceNumber001"6goodsNm:"Merchant Goods 1"7billingNm:"John Doe"8billingPhone:"08123456789"9billingEmail:"john.doe@example.com"10billingAddr:"Jln.Raya Kasablanka Kav.88"11billingCity:"South Jakarta"12billingState:"DKI Jakarta"13billingPostCd:"10200"14billingCountry:"Indonesia"15callBackUrl:"https://www.merchant.com/callbackUrl/"16dbProcessUrl:"https://www.merchant.com/dbProcessUrl/"17description:"This Is The Description Of The Payment"18merchantToken:"2349fcbd3a5b81d08ca719cc6d9c826f2f6f9d4de337b86e4019114aad6222b1"19userIP:"::1"20cartData:"{}"21instmntType:"1"22instmntMon:"1"23onePassToken:"9338d54573688ae18e175240b0257de48d89c6ef1c9c7b5c094dc4beed9e435f"24cardCvv:"100"25recurrOpt:"1"
0 Automatic Cancel
1 Do Not Cancel
2 Do Not Make Token
1
billingAddr
AN
100
Billing Address
Jln. Raya Kasablanka Kav.88
deliveryNm
A
30
Delivery Name
Merchant's Name
deliveryPhone
N
15
Delivery Phone
08123456789
deliveryAddr
AN
100
Delivery Address
Jln. Dr. Saharjo No.88
deliveryEmail
AN
100
Delivery E-Mail
example@merchant.com
deliveryCity
A
50
Delivery City
South Jakarta
deliveryState
A
50
Delivery State
DKI Jakarta
deliveryPostCd
N
10
Delivery Post Number
10201
deliveryCountry
A
A
Delivery Country
Indonesia
vat
N
12
VAT
0
fee
N
12
Service Tax
0
notaxAmt
N
12
Tax Free Amount
0
reqDt
N
N
Request Date (YYYYMMDD)
20230516
reqTm
N
N
Request Time (HH24MISS)
135959
reqDomain
ANS
100
Request Domain
www.merchant.com
reqServerIP
ANS
15
Request Server IP
127.0.0.1
reqClientVer
ANS
50
Request Client Version
1.0
userSessionID
AN
100
User Session ID
userSessionID
userAgent
ANS
100
User Agent Information
Mozilla
userLanguage
ANS
2
User Language
en-US
Response Parameter - Credit Card Payment
Sample Response Payment
1{2"ccTransType":"1",3"fee":null,4"tXid":"IONPAYTEST01202305162316067832",5"description":"Description",6"notaxAmt":null,7"cardNo":"51234500****0008",8"issuBankCd":"CENA",9"preauthToken":null,10"cardExpYymm":"3901",11"acquBankNm":"CIMB",12"payMethod":"01",13"callbackUrl":"https://www.merchant.com/callback/",14"instmntMon":"1",15"currency":"IDR",16"issuBankNm":"BCA",17"resultCd":"0000",18"amount":"10000",19"goodsNm":"Merchant Goods 1",20"referenceNo":"MerchantReferenceNumber001",21"transTm":"231641",22"authNo":"041385",23"recurringToken":"88cb7e30c531429a95fb2af442f591b75939fd0387288af2dc2340c50776d84a"//Only For Recurring,24"preAuth":"c2921cc7a1967f905fd4f895f22f06c02d24adf8c9f7b169d6ef0c2c0b128549"//Only For PreAuth,25"vat":null,26"instmntType":"1",27"resultMsg":"SUCCESS",28"billingNm":"John Doe",29"acquBankCd":"BNIA",30"transDt":"20230516"31}
Saat Merchant menandatangani kontrak sebagai Recurring, NICEPAY memberikan RecurringToken ke responseAPI Pembayaran. Merchant dapat menggunakan RecurringToken untuk permintaan API Pembayaran berikutnya tanpa memasukan detail kartu, kecuali CVV (Mandatory).
Recurring Issue
Untuk melakukan pembayaran Recurring, sistem membutuhkan recurringToken milik Pelanggan agar dapat menggunakan informasiPelanggan secara berkala tanpa harus memasukkan data kartu berkali-kali. recurringToken didapatkan setelah Pelanggan melakukan pembayaran untuk pertama kali. Berikut adalah langkah untuk mendapatkan recurringToken.
Pelanggan akan memasukkan data kartu berupa cardNo dan ExyMmYy melalui API Request Token (onePassToken.do).
Pelanggan akan mendapatkan cardToken.
Proses pembayaran dengan Recurring pada V1 Enterprise terbagi menjadi 2, yaitu Direct 3Ds dan Direct Non-3Ds.
Jika melalui proses 3Ds, maka data kartu akan melalui verifikasi keamanan dari API 3Ds Request (secureVeRequest.do) berupa OTP serta keamanan FDS (Fraud Detection System) NICEPAY.
Jika tidak melalui proses 3Ds, maka tidak akan melalui verifikasi keamanan.
Pelanggan melakukan pembayaran dengan APICredit CardPayment (onePass.do) dan mendapatkan recurringToken untuk melakukan pembayaran dengan secara berkala.
API Specification - Recurring Issue
API Endpoint
/nicepay/api/recurringToken.do
Method
application/x-www-form-urlencoded
POST
Description
recurringToken.do hampir sama dengan onePassToken.do bedanya apakah menggunakan info kartu atau Recurring Token
Merchant Token
SHA256 (Merchant ID + Reference Number + Amount + Merchant Key)
Request Parameter - Recurring Issue
Parameter di bawah ini harus dikirim dalam parameter 'jsonData' dan dengan format JSON.
Setelah mendapatkan recurringToken dari pembayaran pertama yang berhasil atau hasil proses pendaftaran kartu,sistem akan menggunakan recurringToken tersebut untuk melakukan pembayaran pada jadwal berikutnya. Berikut adalah langkah pembayaran pada sistem dalam menggunakan recurringToken.
MasukkanrecurringTokenyang didapatkan dari prosespembayaran pertama (onePass.do) atau hasil proses pendaftaran kartu (tokenize.do).
Kemudian, cardToken akan didapatkan dan disimpan pada database untuk digunakan pada pembayaran selanjutnya.
Khusus proses 3Ds, data kartu akan melalui verifikasi keamanan dari API 3Ds Request (secureVeRequest.do) berupa OTP serta keamanan FDS (Fraud Detection System) NICEPAY dengan menggunakan cardTokenyang didapatkan dari langkah sebelumnya.
Pembayaran akan dilakukan menggunakan API Recurring Payment (recurringTrans.do).
Proses ini akan terus berjalan selama masa Recurring berlaku.
Pada pembayaran recurring berikutnya, recurringTokenyang akan digunakan berasal dari recurringToken.do . onePass.do hanya digunakan pada saat pembayaran recurring pertama kali.
API Specifications - Recurring Payment
API Endpoint
/nicepay/api/recurringTrans.do
Method
application/x-www-form-urlencoded
POST
Merchant Token
SHA256(Merchant ID + Reference Number + Amount + MerchantKey)
Deskripsi
API Pembayaran untuk Kartu Kredit Recurring atau pembayaran menggunakan Recurring Token
Request Parameter - Recurring Payment
Sample Request Recurring Payment
Sample Java Request Recurring Paymen
1iMid:"IONPAYTEST"2payMethod:"01"3currency:"IDR"4amt:"10000"5referenceNo:"MerchantReferenceNumber001"6goodsNm:"Merchant Goods 1"7billingNm:"John Doe"8billingPhone:"08123456789"9billingEmail:"john.doe@example.com"10billingAddr:"Jln.Raya Kasablanka Kav.88"11billingCity:"South Jakarta"12billingState:"DKI Jakarta"13billingPostCd:"10200"14billingCountry:"Indonesia"15callBackUrl:"https://www.merchant.com/callbackUrl/"16dbProcessUrl:"https://www.merchant.com/dbProcessUrl/"17description:"This Is The Description Of The Payment"18merchantToken:"2349fcbd3a5b81d08ca719cc6d9c826f2f6f9d4de337b86e4019114aad6222b1"19userIP:"::1"20cartData:"{}"21instmntType:"1"22instmntMon:"1"23recurringToken:"88cb7e30c531429a95fb2af442f591b75939fd0387288af2dc2340c50776d84a"24cardCvv:"100"25recurrOpt:"1"
0 : Automatic Cancel
1 : Do Not Cancel
2 : Do Not Make Token
1
billingAddr
AN
255
Billing Address
Jln. Raya Kasablanka Kav.88
deliveryNm
A
30
Delivery Name
Merchant's Name
deliveryPhone
N
15
Delivery Phone
08123456789
deliveryAddr
AN
100
Delivery Address
Jln. Dr. Saharjo No.88
deliveryEmail
ANS
100
Delivery E-mail
example@merchant.com
deliveryCity
A
50
Delivery City
South Jakarta
deliveryState
A
50
Delivery State
DKI Jakarta
deliveryPostCd
N
10
Delivery Post Number
10201
deliveryCountry
A
A
Delivery Country
Indonesia
vat
N
12
Vat
0
fee
N
12
Service Tax
0
notaxAmt
N
12
Tax Free Amount
0
reqDt
N
N
Request Date (YYYYMMDD)
20230516
reqTm
N
N
Request Time (HH24MISS)
135959
reqDomain
ANS
100
Request Domain
www.merchant.com
reqServerIP
ANS
15
Request Server IP
127.0.0.1
reqClientVer
ANS
50
Request Client Version
1.0
userSessionID
AN
100
User Session ID
userSessionID
userAgent
ANS
100
User Agent Information
Mozilla
userLanguage
ANS
2
User Language
en-US
Response Parameter - Recurring Payment
Sample Response Recurring Payment
1{2"issuBankNm":"BCA",3"resultCd":"0000",4"amount":"10000",5"ccTransType":"2",6"authNo":"048797",7"referenceNo":"MerchantReferenceNumber001",8"transTm":"224646",9"fee":null,10"vat":null,11"tXid":"IONPAYTEST01202305212240279260",12"description":"This Is The Description Of The Payment",13"notaxAmt":null,14"cardNo":"51234500****0008",15"issuBankCd":"CENA",16"instmntType":"1",17"resultMsg":"SUCCESS",18"acquBankCd":"BNIA",19"cardExpYymm":"3901",20"acquBankNm":"CIMB",21"payMethod":"01",22"callbackUrl":"https://www.merchant.com/callbackUrl/",23"instmntMon":"1",24"transDt":"20230516"25}
API ini digunakan khusus pada Kartu Kredit tipe Recurring untuk membuat recurringToken tanpa melakukan prosestransaksipembayaran terlebih dahulu, melainkan hanya melalui proses pendaftaran informasi kartu. recurringTokenyang berhasil dibuat dapat digunakan untuk melakukan prosestransaksi (recurringTrans.do).
API Specification - Generate Recurring Token Without First Payment
API Endpoint
/nicepay/api/tokenize.do
Method
application/x-www-form-urlencoded
POST
Description
Melakukan generate Recurring Token Kartu Kredit tanpa melakukan pembayaran terlebih dahulu
Merchant Token
SHA256 (Merchant ID + Card No + Card Exp Yymm + Merchant Key)
Untuk melakukan pembayaran Pre-Auth & Capture, sistem membutuhkan preauthToken agar dapat melakukan prosescapture. Proses tersebut hanya dapat dilakukan selama preauthToken masih berlaku. Berikut adalah langkah pembayaran pada sistem dalam menggunakan Pre-Auth Token.
Pelanggan akan memasukkan data kartu berupa cardNo dan ExyMmYy melalui API Request Token (onePassToken.do).
Pelanggan akan mendapatkan cardToken.
Proses pembayaran dengan Pre-Auth pada V1 Enterprise terbagi menjadi 2, yaitu Direct 3Ds dan Direct Non-3Ds.
Jika melalui proses 3Ds, maka data kartu akan melalui verifikasi keamanan dari API 3Ds Request (secureVeRequest.do) berupa OTP serta keamanan FDS (Fraud Detection System) NICEPAY.
Jika tidak melalui proses 3Ds, maka tidak akan melalui verifikasi keamanan.
Pelanggan melakukan pembayaran dengan APICredit CardPayment (onePass.do).
Sistem melakukan proseshold dan mendapatkan preauthToken untuk melanjutkan proses.
Proses capture amount akan dilakukan menggunakan API Pre-Auth (captureTrans.do) dengan memasukkan preauthToken dan CVV.
Jika preauthToken kedaluwarsa, maka pembayaran akan menjadi Void dan dana akan dikembalikan kepada Pelanggan.
API Specification - Pre-Auth
API Endpoint
/nicepay/api/captureTrans.do
Method
application/x-www-form-urlencoded
POST
Merchant Token
SHA256(Merchant ID + Reference Number + Amount + MerchantKey)
Deskripsi
API Pembayaran untuk Kartu Kredit Pre-Auth menggunakan preauthToken
0 : Automatic Cancel
1 : Do Not Cancel
2 : Do Not Make Token
1
billingAddr
AN
255
Billing Address
Jln. Raya Kasablanka Kav.88
deliveryNm
A
30
Delivery Name
Merchant's Name
deliveryPhone
N
15
Delivery Phone
08123456789
deliveryAddr
AN
100
Delivery Address
Jln. Dr. Saharjo No.88
deliveryEmail
AN
100
Delivery E-Mail
example@merchant.com
deliveryCity
A
50
Delivery City
South Jakarta
deliveryState
A
50
Delivery State
DKI Jakarta
deliveryPostCd
N
10
Delivery Post Number
10201
deliveryCountry
A
A
Delivery Country
Indonesia
vat
N
12
VAT
0
fee
N
12
Service Tax
0
notaxAmt
N
12
Tax Free Amount
0
reqDt
N
N
Request Date (YYYYMMDD)
20230516
reqTm
N
N
Request Time (HH24MISS)
135959
reqDomain
ANS
100
Request Domain
www.merchant.com
reqServerIP
ANS
15
Request Server IP
127.0.0.1
reqClientVer
ANS
50
Request Client Version
1.0
userSessionID
AN
100
User Session ID
userSessionID
userAgent
ANS
100
User Agent Information
Mozilla
userLanguage
ANS
2
User Language
en-US
Response Parameter - Pre-Auth
Sample Response Pre-Auth
1{2"issuBankNm":"BCA",3"resultCd":"0000",4"amount":"1000",5"ccTransType":"4",6"authNo":"051837",7"referenceNo":"MerchantReferenceNumber001",8"transTm":"234619",9"fee":null,10"vat":null,11"tXid":"IONPAYTEST01202305212346199270",12"description":"This Is The Description Of The Payment",13"notaxAmt":null,14"cardNo":"51234500****0008",15"issuBankCd":"CENA",16"instmntType":"1",17"resultMsg":"SUCCESS",18"acquBankCd":"BNIA",19"cardExpYymm":"3901",20"acquBankNm":"CIMB",21"payMethod":"01",22"callbackUrl":"https://www.merchant.com/callbackUrl",23"instmntMon":"1",24"transDt":"20230516"25}
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key