NICEPAY API
...
API Versi 1
V1 Enterprise

Convenience Store (CVS) - V1 Enterprise

8min

Convenience Store



 menawarkan melalui (), seperti Alfamart dan Indomaret, akan mempermudah pengalaman berbelanja bagi .

Supported CVS by NICEPAY:

  1. Alfamart.
  2. Indomaret.
  3. Lawson.
  4. Alfamidi.
  5. Dan+Dan Store.
Alur CVS V1 Enterprise
Alur CVS V1 Enterprise


Alur CVS:

  1.  melakukan request checkout.
  2.  mengirimkan data kepada .
  3.  melakukan pendaftaran menggunakan API Regist kepada .
  4.  melakukan validasi dan generate nomor .
  5.  mengirimkan nomor kepada .
  6.  mengirimkan nomor kepada .
  7.  memberikan nomor CVS kepada .
  8.  mengirimkan data nomor CVS kepada .
  9. CVS mengirimkan data inquiry kepada .
  10.  melakukan inquiry.
  11.  mengirimkan inquiry kepada CVS.
  12.  melakukan .
  13.  mengirimkan kepada CVS.
  14. CVS membuat bukti .
  15. CVS mengirimkan bukti kepada .
  16. CVS mengirim notifikasi kepada .
  17.  memperbarui .
  18.  mengirim kepada .
  19.  request pemeriksaan menggunakan kepada .
  20.  menerima request dikirimkan oleh .
  21.  mengirimkan response kepada .
  22.  menerima akhir.
  23.  mengirimkan hasil pesanan kepada .



CVS Registration



API Specifications - CVS Registration

API Endpoint

/nicepay/api/onePass.do

Request Method application/x-www-form-urlencoded

POST

Description

Request payNo untuk melakukan CVS di 

Merchant Token

SHA256(iMid+referenceNo+amt+merchantKey)

Payment Method

03 Convenience Store



Request Parameter - CVS Registration

Convenience Store Registrasi - Request Parameter


Parameter

Tipe

Ukuran

Deskripsi

Contoh / Catatan

iMid

Required

AN

10

 ID

IONPAYTEST

payMethod Required 

N

2

03

currency Required 

A

3

Currency

IDR

amt Required 

N

12

Goods Amount

1000

referenceNo Required

ANS

40

 Order No.

MerchantReferenceNumber001

goodsNm Required 

AN

100

Goods Name

Merchant Goods 1

billingNm Required 

A

A

Billing Name

John Doe

billingPhone Required 

N

15

Billing Phone Number

081234567890

billingEmail Required 

ANS

40

Billing E-Mail

billingCity Required

A

50

Billing City

Jakarta

billingState Required 

A

50

Billing State

DKI Jakarta

billingPostCd Required 

N

10

Billing Post Number

12345

billingCountry Required 

A

10

Billing Country



callBackUrl Required 

ANS

255

 Result URL

https://merchant.com/callBackUrl

dbProcessUrl Required 

ANS

255

 Notif URL

https://merchant.com/dbProcessUrl

description Required 

AN

100

Description

test item

merchantToken Required 

AN

255

 Token

6cfccfc0046773c1b589d8e98f8b596c284f3c70a4ecf86eba14c18944b74bcd

userIP Required

ANS

15

User IP ()

127.0.0.1

cartData Required

JSON OBJECT

4000

Cart Data (JSON Format)

{}

mitraCd Required

A

4

Mitra Code

ALMA

billingAddr

AN

255

Billing Address

Jln Cendrawasih

deliveryNm

A

30

Delivery Name

John Doe

deliveryPhone

N

15

Delivery Phone

081234567890

deliveryAddr

AN

100

Delivery Address

Jln Merak

deliveryEmail

ANS

100

Delivery E-Mail

deliveryCity

A

50

Delivery City

Jakarta

deliveryState

A

50

Delivery State

DKI Jakarta

deliveryPostCd

A

10

Delivery Post Code

14350

deliveryCountry

A

10

Delivery Country



vat

N

12



0

fee

N

12

Service Tax

0

notaxAmt

N

12

Tax Free Amount

0

reqDt

N

8

Request Date (YYYYMMDD)

20160301

reqTm

N

6

Request Time (HH24MISS)

135959

reqDomain

ANS

100

Request Domain

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

Mozilla

userLanguage

ANS

2

User Language

en-US

payValidDt

N

8

CVS Expiry Date (YYYYMMDD)

20160303

payValidTm

N

6

CVS Expiry Time (HH24MISS)

135959



Response Parameter - CVS Registration

JSON


Parameter

Tipe

Ukuran

Deksripsi

Contoh / Catatan

resultCd

N

4

Result Code

0000

resultMsg

AN

255

10000

goodsNm

AN

100

Goods Name

Test Transaction

tXid

AN

30

Transaction ID

TESTIDTEST03201803011108471311

referenceNo

ANS

40

 Order Number

99997

payMethod

N

2

03

amount

N

12

 Amount

10000

transDt

N

8

Transaction Date (YYYYMMDD)

20180301

transTm

N

6

Transaction Time (HH24MISS)

110847

mitraCd

A

4

Mitra Code

ALMA

payNo

N

12

CVS Number

011108471311