Faspay
Search…
Post Data Transaction
This process is used to look transmit transaction data from a merchant to Faspay. Post process the data is done when the merchant request parameters and then Faspay will respond to the request.
URL Endpoint Post Data
Endpoint URL is used as a feedback URL that will process the data in the post from the merchant system. There are two URLs that needs to be used, namely Production and Development. For the implementation of the testing or UAT can use the URL development.
Request Parameter Post Data Transaction
Request parameters are parameters that must be provided by the merchant system to be able to post the data with system integration Faspay.
Request
Sample XML Request
Sample JSON Request
Parameter
Data Type
M/O/C
Description
Request
Alfanumeric (50)
M
Request Description
Merchant_id
Numeric (5)
M
Merchant Code From Faspay = BOI
Merchant
Alfanumeric (32)
M
Merchant Name
bill_no
Alfanumeric (32)
M
Order Number
bill_reff
Alfanumeric (32)
O
Booking Number/reffrence (can fill same with order no)
bill_date
Datetime YYYY-MM-DD HH:MM:SS (6)
M
Transaction/ Order Date
bill_expired
Datetime YYYY-MM-DD HH:MM:SS (6)
M
Payment Expiring Date (max 30 days)
bill_desc
Alfanumeric (128)
M
Transaction Description
bill_currency
Alfanumeric (3)
M
Currency, Must be 'IDR'
bill_gross
Numeric (15)
O
Order Nominal
bill_miscfee
Numeric (15)
O
Miscellaneous fee
bill_total
Numeric (15)
M
Total Nominal
payment_channel
Numeric (32)
M
Payment Channel Code
pay_type
Alfanumeric (1)
M
Payment type :
1: Full Settlement
2: Installment
3: Mixed 1 & 2
Pay Type 2 & 3 only implement on BCA KlikPay channel
cust_no
Alfanumeric (32)
M
Customer Number
cust_name
Alfanumeric (128)
M
Customer Name
bank_user_id
Alfanumeric (128)
O
Customer User ID on bank’s services (ex : KlikBCA User Id)
Msisdn
Numeric (64)
M
Customer Mobile Phone
Email
Alfanumeric (128)
M
Customer Email
Terminal
Numeric (16)
M
Always use 10 for Terminal
billing_name
Alfanumeric
C
Billing name for OVO
billing_lastname
Billing name
O
biling last name
billing_address
Alfanumeric (200)
O
billing_address
billing_address_city
Alfanumeric (50)
O
Billing City
billing_address_region
Alfanumeric (100)
O
Billing Addres Region
billing_address_state
Alfanumeric (100)
O
Billing Address State
billing_address_poscode
Alfanumeric (10)
O
Billing Address Pos Code
billing_address_country_code
Alfanumeric (10)
O
Billing Address Country Code
receiver_name_for_shipping
Alfanumeric (100)
C
Receiver Name
shipping_lastname
Alfanumeric
O
Receiver last name
shipping_address
Alfanumeric (200)
O
Shipping Address
shipping_address_city
Alfanumeric (50)
O
Shipping Address City
shipping_address_region
Alfanumeric (100)
O
Shipping Address Region
shipping_address_state
Alfanumeric (100)
O
Shipping Address State
shipping_address_poscode
Alfanumeric (10)
O
Shipping Address Pos Code
shipping_address_country_code
Alfanumeric (10)
O
Shipping Address Country Code
shipping_msisdn
Numeric
C
Shipping phone number
Product
Alfanumeric (50)
M
Item Name
Amount
Numeric
M
Item Price
Qty
Numeric (32)
M
Item Quantity
payment_plan
Numeric (1)
M
Payment plan
1: Full Settlement
2: Installement
tenor
Numeric (2)
M
Installment Tenor
00: Full Payment
03: 3 months
06: 6 months
12: 12 months
Tenor 03,06,12 only use on BCA KlikPay channel
merchant_id
Numeric (5)
M
Merchant Id From Payment Channel ex : MID from BCA KlikPay
Reserve1
Alfanumeric (50)
O
Reserve2
Alfanumeric (50)
C
Signature
Alfanumeric (100)
M
sha1(md5(user_id merchant + password merchant + bill_no))
1
<faspay>
2
<request>Post Data Transaction</request>
3
<merchant_id>99999</merchant_id>
4
<merchant>STORE</merchant>
5
<bill_no>647998170894149</bill_no>
6
<bill_reff>647998170894149</bill_reff>
7
<bill_date>2020/9/02 11:25:53 AM</bill_date>
8
<bill_expired>2017/9/02 3:25:53 PM</bill_expired>
9
<bill_desc>MIYAKO Stand Water Dispenser - Red Black (Merchant)</bill_desc>
10
<bill_currency>IDR</bill_currency>
11
<bill_gross>000</bill_gross>
12
<bill_tax>000</bill_tax>
13
<bill_miscfee>000</bill_miscfee>
14
<bill_total>75600000</bill_total>
15
<cust_no>USR170709275</cust_no>
16
<cust_name>Nur Auliya</cust_name>
17
<payment_channel>402</payment_channel>
18
<pay_type>1</pay_type>
19
<bank_userid>bot31160</bank_userid>
20
<msisdn>628122131187</msisdn>
21
<email>[email protected].com</email>
22
<terminal>10</terminal>
23
<billing_address>Kawasan industri sentul.jl.olympic raya kav.b8 sentul bogor</billing_address>
24
<billing_address_city>Bogor</billing_address_city>
25
<billing_address_region>Bogor</billing_address_region>
26
<billing_address_state>Jawa Barat</billing_address_state>
27
<billing_address_poscode>16810</billing_address_poscode>
28
<billing_address_country_code>ID</billing_address_country_code>
29
<receiver_name_for_shipping>Nur Auliya</receiver_name_for_shipping>
30
<shipping_address>Kawasan industri sentul.jl.olympic raya kav.b8 sentul bogor</shipping_address>
31
<shipping_address_city>Bogor</shipping_address_city>
32
<shipping_address_region>Bogor</shipping_address_region>
33
<shipping_address_state>Jawa Barat</shipping_address_state>
34
<shipping_address_poscode>16810</shipping_address_poscode>
35
<shipping_address_country_code>ID</shipping_address_country_code>
36
<item>
37
<product>MIYAKO Stand Water D</product>
38
<amount>54900000</amount>
39
<qty>1</qty>
40
<payment_plan>1</payment_plan>
41
<tenor>00</tenor>
42
<merchant_id />
43
</item>
44
<item>
45
<product>Shipping Cost</product>
46
<amount>20700000</amount>
47
<qty>1</qty>
48
<payment_plan>1</payment_plan>
49
<tenor>00</tenor>
50
<merchant_id />
51
</item>
52
<reserve1 />
53
<reserve2 />
54
<signature>be8791ac5f10bb042834896598bfc6bb9aadcbf9</signature>
55
</faspay>
Copied!
1
{
2
"request":"Post Data Transaction",
3
"merchant_id":"98765",
4
"merchant":"FASPAY",
5
"bill_no":"98765123456789",
6
"bill_reff":"12345678",
7
"bill_date":"2020-09-02 10:48:10",
8
"bill_expired":"2020-09-03 10:48:10",
9
"bill_desc":"Pembayaran #12345678",
10
"bill_currency":"IDR",
11
"bill_gross":"0",
12
"bill_miscfee":"0",
13
"bill_total":"1000000",
14
"cust_no":"12",
15
"cust_name":"Nur Auliya",
16
"payment_channel":"302",
17
"pay_type":"1",
18
"bank_userid":"",
19
"msisdn":"628122131187",
20
"email":"[email protected]",
21
"terminal":"10",
22
"billing_name":"0",
23
"billing_lastname":"0",
24
"billing_address":"jalan pintu air raya",
25
"billing_address_city":"Jakarta Pusat",
26
"billing_address_region":"DKI Jakarta",
27
"billing_address_state":"Indonesia",
28
"billing_address_poscode":"10710",
29
"billing_msisdn":"",
30
"billing_address_country_code":"ID",
31
"receiver_name_for_shipping":"Nur Auliya",
32
"shipping_lastname":"",
33
"shipping_address":"jalan pintu air raya",
34
"shipping_address_city":"Jakarta Pusat",
35
"shipping_address_region":"DKI Jakarta",
36
"shipping_address_state":"Indonesia",
37
"shipping_address_poscode":"10710",
38
"shipping_msisdn":"",
39
"shipping_address_country_code":"ID",
40
"item":[
41
{
42
"product":"Invoice No. inv-985/2017-03/1234567891",
43
"qty":"1",
44
"amount":"1000000",
45
"payment_plan":"01",
46
"merchant_id":"99999",
47
"tenor":"00"
48
}
49
],
50
"reserve1":"",
51
"reserve2":"",
52
"signature":"5807a17ccd950904ec0a303725fa8a4b36c89e2f"
53
}
Copied!
    Writing without separators. Example: Rp. 10.000,00 Written 1000000
    Signature for Post Data : $signature = sha1(md5(($user_id.$pass.$bill_no))); Sample signature: sha1(md5("[email protected]")) = e0ba1b2dc29ab4cb4221df092f44b1c4e6f45c63
Response Parameter Post Data Transaction
Response
Sample XML Response
Sample JSON Response
Parameter
Data Type
M/O/C
Description
Response
Alfanumeric (50)
O
Response Name
trx_id
Numeric (16)
M
Transaction ID (Issued/generated by Faspay (Media Indonusa)) Notes: Unique Transaction ID for 1 day or as long as it hasn't been paid and hasn't expired
Merchant_id
Numeric (5)
M
Merchant Code
Merchant
Alfanumeric (32)
M
Merchant Name
bill_no
Alfanumeric (32)
M
Order No
Response_Code
Numeric (2)
M
Response Code 00 Success
Response_Desc
Alfanumeric (32)
M
Response Code Description
redirect_url
Alfanumeric
O
the redirect url for the next process, available only on JSON format
1
<?xml version="1.0" encoding="UTF-8"?>
2
<faspay>
3
<response>Transmission Detail Info</response>
4
<trx_id>3100440033666278</trx_id>
5
<merchant_id>31004</merchant_id>
6
<merchant>STORE</merchant>
7
<bill_no>31004001</bill_no>
8
<bill_items>
9
<product>Storybook</product>
10
<qty>2</qty>
11
<amount>2000000</amount>
12
<payment_plan>01</payment_plan>
13
<merchant_id/>
14
<tenor>00</tenor>
15
</bill_items>
16
<bill_items>
17
<product>Drawingbook</product>
18
<qty>1</qty>
19
<amount>1000000</amount>
20
<payment_plan>02</payment_plan>
21
<tenor>03</tenor>
22
<merchant_id/> </bill_items>
23
<bill_items>
24
<product>Notebooks</product>
25
<qty>4</qty>
26
<amount>1500000</amount>
27
<payment_plan>01</payment_plan>
28
<tenor>06</tenor>
29
<merchant_id/>
30
</bill_items>
31
<response_code>00</response_code>
32
<response_desc>Success</response_desc>
33
</faspay>
Copied!
1
{
2
"response": "Transmission Detail Info",
3
"trx_id": "9876530200004184",
4
"merchant_id": "98765",
5
"merchant": "Faspay sandbox",
6
"bill_no": "98765123456789",
7
"bill_items": [
8
{
9
"product": "Invoice No. inv-985/2017-03/1234567891",
10
"qty": "1",
11
"amount": "1000000",
12
"payment_plan": "01",
13
"merchant_id": "99999",
14
"tenor": "00"
15
}
16
],
17
"response_code": "00",
18
"response_desc": "Sukses",
19
"redirect_url": "https://dev.faspay.co.id/pws/100003/0830000010100000/5807a17ccd950904ec0a303725fa8a4b36c89e2f?trx_id=9876530200004184&merchant_id=98765&bill_no=98765123456789"
20
}
Copied!
Last modified 5d ago
Copy link