OVO Tokenize is one of Faspay Collection's products which is a digital financial service that makes it easier for users to transaction online at Merchant. This Ovo Tokenize can be embedded directly on the Merchant store application/website, and the Customer can directly pay the bill through the merchant.
The integration process of OVO will be explained below.
This API service is designed to enable the activation of user (customer) accounts, allowing them to be seamlessly integrated into the merchant's website or application. This integration enables customers to make direct payments for transactions on the merchant's page.
{"request":"Account Activation OVO OpenAPI","merchant_id":"99999","payment_channel":"720","phone_no":"081382826301","cust_name":"Andrea Hinata","signature":"1d4c5f7246a762c4ab61cd3d399efa4c28978bf3"}
Activation Response
You will get the Activation Response following like below:
Parameter
Data Type
M/O/C
Description
response
Alphanumeric
O
response description
status
Alphanumeric
M
Status activation account
message
Alphanumeric
M
message response activation
redirectURL
Alphanumeric
M
URL redirection to fill in OTP and PIN fields.
Notes: Merchant has to redirect with client
side browser to this URL.
response_code
Numeric
M
Response code from sevice API
00: Success
01: Failed
response_desc
Alphanumeric
M
Response Description from response code
<?xml version="1.0" encoding="UTF-8"?><faspay> <response>Account Activation OVO Open API</response> <status>ALLOWED</status> <message>SUCCESS</message> <redirectURL>https://webview.byte-stack.net/cellblockui/partner/activation?action=otpLinkage&authType=2FA&client-id=OAMERCHANTAB&phoneNumber=08138282%2A%2A%2A%2A&refId=0cdef070-77e2-42e9-b365-9a27bb2a0af5&token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjb2RlaGFzaCI6Ik56QTFNRGxrTldZd05UUmxOR013TmprNU56bGhZVFF5TkRGa01UVXlPR1kiLCJyYW5kb20iOiJOVGcxTmpFeU53IiwidmVyc2lvbiI6MX0.jiWSIoIZ8SfNEwvwX5Y57raYwg0RIfr3Wr3ChyLwv7M&submissionType=redirect&destination=https%3A%2F%2Fdebit-staging.faspay.co.id%2Fpws%2Fovo_openapi%2Fcallback&state=4f260f83e2fa19f3cf51c082&theme=theme1</redirectURL> <response_code>00</response_code> <response_desc>Success</response_desc></faspay>
{"response":"Account Activation OVO Open API","status":"ALLOWED","message":"SUCCESS", "redirectURL": "https://webview.byte-stack.net/cellblockui/partner/activation?action=otpLinkage&authType=2FA&client-id=OAMERCHANTAB&phoneNumber=08138282%2A%2A%2A%2A&refId=0cdef070-77e2-42e9-b365-9a27bb2a0af5&toke=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjb2RlaGFzaCI6Ik56QTFNRGxrTldZd05UUmxOR013TmprNU56bGhZVFF5TkRGa01UVXlPR1kiLCJyYW5kb20iOiJOVGcxTmpFeU53IiwidmVyc2lvbiI6MX0.jiWSIoIZ8SfNEwvwX5Y57raYwg0RIfr3Wr3ChyLwv7M&submissionType=redirect&destination=https%3A%2F%2Fdebit-staging.faspay.co.id%2Fpws%2Fovo_openapi%2Fcallback&state=4f260f83e2fa19f3cf51c082&theme=theme1",
"response_code":"0","response_desc":"Success"}
2. Callback Activation
This API service is designed to send notifications to the merchant's server, informing them about the status of the user's account activation, whether it has succeeded or failed.
URL Endpoint
For Endpoint URL, from the merchant side specifying.
{"request":"Transfer OVO OpenAPI","merchant_id":"99999","bill_no":"123","bill_desc":"prepaid credit transfer.","bill_total":"10000","bill_currency":"IDR","payment_channel":"720","phone_no":"081382826301","cust_name":"Andrea Hinata","email":"andreahinata@gmail.com","pay_type":"0","signature":"1d4c5f7246a762c4ab61cd3d399efa4c28978bf3"}
You will get the payment response:
Parameter
Data Type
M/O/C
Description
response
Alphanumeric
O
Response description
redirectURL
Alphanumeric
M
URL redirection to fill in OTP and PIN fields.
Notes: Merchant has to redirect with client
side browser to this URL.
status
Alphanumeric
M
Status transaction
trx_id
Alphanumeric
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.
bill_no
Numeric (32)
M
Order number
amount
Alphanumeric
M
Amount of transaction.
payment_day
Datetime
YYYY-MM-DD
HH:MM:SS (6)
M
Date of transaction
response_code
Numeric
M
Response code from service
00: Success
01: Failed
response_desc
Alphanumeric
M
Response description of response code.
<?xml version="1.0" encodin0g="UTF-8"?><faspay> <response>Transfer OVO Open API</response> <redirectURL>https://webview.byte-stack.net/cellblockui/v2/paymentPin?clientTxnId=9999982980212147&action=payment&client-id=OAMERCHANTAB&token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjb2RlaGFzaCI6Ik9UUXdNems0TVRSak0yRmtOR0poTkdJNVlUYzVNbVZrTTJWbE1qaGxNVGciLCJyYW5kb20iOiJOVGcxTmpJeE5RIiwidmVyc2lvbiI6MX0.fI9wW9ODfFoDpG1YhcZl7B8ntTG7uxS6eAkEVZlYPgY&submissionType=redirect&destination=https%3A%2F%2Fdebit-staging.faspay.co.id%2Fpws%2Fovo_openapi%2Fcallback&state=945b59559ca2a45c9bc1a00c&theme=theme1</redirectURL> <status>PENDING</status> <trx_id>9999982980212147</trx_id> <bill_no>123</bill_no> <amount>100</amount> <payment_day>2021-11-11 11:26:42</payment_day> <response_code>00</response_code> <response_desc>Success</response_desc></faspay>
{"response":"Transfer OVO Open API", "redirectURL": "https://webview.byte-stack.net/cellblockui/v2/paymentPin?clientTxnId=9999982980212147&action=payment&client-id=OAMERCHANTAB&token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjb2RlaGFzaCI6Ik9UUXdNems0TVRSak0yRmtOR0poTkdJNVlUYzVNbVZrTTJWbE1qaGxNVGciLCJyYW5kb20iOiJOVGcxTmpJeE5RIiwidmVyc2lvbiI6MX0.fI9wW9ODfFoDpG1YhcZl7B8ntTG7uxS6eAkEVZlYPgY&submissionType=redirect&destination=https%3A%2F%2Fdebit-staging.faspay.co.id%2Fpws%2Fovo_openapi%2Fcallback&state=945b59559ca2a45c9bc1a00c&theme=theme1",
"status":"PENDING","trx_id":"9999982980212147","bill_no":"123","amount":"100","payment_day":"2021-11-11 11:26:42","response_code":"00","response_desc":"Success"}
3.1 Payment Token Expired
Abnormal conditions occur when the payment token has passed the given time period (Expired) or the customer updates the phone number in OVO app or it could be from the customer breaking the linkage from partner app.
{"request":"Transfer OVO OpenAPI","merchant_id":"99999","bill_no":"123","bill_desc":"credit purchase transfer","bill_total":"10000","bill_currency":"IDR","payment_channel":"720","phone_no":"081382826301","cust_name":"Andrea Hinata","email":"andreahinata@gmail.com","pay_type":"0","signature":"1d4c5f7246a762c4ab61cd3d399efa4c28978bf3"}
You will get the response:
Parameter
Data Type
M/O/C
Description
response
Alphanumeric
O
Response description
response_code
Numeric
M
Response code from sevice API
00: Success
01: Failed
02: Failed, please regenerate payment token
response_desc
Numeric
M
Response description of response code.
url
Alphanumeric
M
URL Direction to regenerate payment
tokens.
<?xml version="1.0" encoding="UTF-8"?><faspay> <response>Transfer OVO Open API</response> <response_code>02</response_code> <response_desc>Failed, please regenerate payment token</response_desc> <url>https://webview.byte-stack.net/cellblockui/v2/paymentPin?action=regeneratePayment&client-id=OAMERCHANTAB&token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjb2RlaGFzaCI6Ik9XTXlNelJsWm1RMlpEZ3pOR1JpTm1FMFl6TmpNV1ptT0RJM1lqZ3lZelUiLCJyYW5kb20iOiJOVGt5TmpreU1RIiwidmVyc2lvbiI6MX0.gsoyoo-7CkQdeNAIaeWKlxd4fvwggHcoQcj_kjiaLXM&submissionType=redirect&state=1467becd693e806472723795&destination=https%3A%2F%2Fdebit-dev.faspay.co.id%2Fpws%2Fovo_openapi%2Fcallback&theme=theme1 </url></faspay>
{"response":"Transfer OVO Open API","response_code":"02","response_desc":"Failed, please regenerate payment token", "url": "https://webview.byte-stack.net/cellblockui/v2/paymentPin?action=regeneratePayment&client-id=OAMERCHANTAB&token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjb2RlaGFzaCI6Ik9XTXlNelJsWm1RMlpEZ3pOR1JpTm1FMFl6TmpNV1ptT0RJM1lqZ3lZelUiLCJyYW5kb20iOiJOVGt5TmpreU1RIiwidmVyc2lvbiI6MX0.gsoyoo-7CkQdeNAIaeWKlxd4fvwggHcoQcj_kjiaLXM&submissionType=redirect&state=a720b840be9f744f513e12ce&destination=https%3A%2F%2Fdebit-dev.faspay.co.id%2Fpws%2Fovo_openapi%2Fcallback&theme=theme1"
}
4. Payment Notification
Payment notification from Faspay to Merchant backend will also be triggered in the event of transaction status getting updated, to ensure the merchant is securely informed. Please provide the URL and make sure it's registered on the Faspay system. The detailed API reference can be found here.
5. Top Up Instruction
This API service shows the content of Top Up instructions if the User/Customer wants to make a Top Up transaction.
<?xml version="1.0" encoding="UTF-8" ?><faspay> <request>Top Up Instruction OVO Open API</request> <merchant_id>99999</merchant_id> <merchant>FASPAY DEMO</merchant> <phone_no>081382826301</phone_no> <payment_channel>720</payment_channel> <signature>1d4c5f7246a762c4ab61cd3d399efa4c28978bf3</signature></faspay>
{"request":"Top Up Instruction OVO Open API","merchant_id":"99999","merchant":"FASPAY DEMO","phone_no":"081382826301","payment_channel":"720","signature":"1d4c5f7246a762c4ab61cd3d399efa4c28978bf3"}
You will get the top up instruction response:
Parameter
Data Type
M/O/C
Description
request
Alphanumeric
O
Response description.
merchant_id
Numeric
M
Merchant Code from Faspay = BOI.
phone_no
Alphanumeric
M
Customer phone number.
payment_channel
Numeric
M
OVO Tokenize channel Code.
merchant
Alphanumeric
M
Merchant name
topup_instruction
Array
M
Information on each type of top up
instruction.
instruction_1
Array
M
Detailed information for Top Up Instruction
option
Alphanumeric
M
Pilihan metode transaksi top up:
• ATM
• Internet/Mobile Banking
• Grab
• Tokopedia
• Merchan t/ Mitra OVO
icon
Alphanumeric
M
Url that displays the icon for each type of top up option
<faspay><request>Check Balance OVO OpenAPI</request><merchant_id>99999</merchant_id><payment_channel>720</payment_channel><phone_no>081382826301</phone_no><signature>1d4c5f7246a762c4ab61cd3d399efa4c28978bf3</signature></faspay>
{"request":"Check Balance OVO OpenAPI","merchant_id":"99999","payment_channel":"720","phone_no":"081382826301","signature":"1d4c5f7246a762c4ab61cd3d399efa4c28978bf3"}
{"response":"Check Balance OVO Open API","phone_no":"081382826301","payment_channel":"720","merchant_id":"99999","detail": {"cash": {"balance":"1967700" },"points": {"balance":"2539434" }},"response_code":"00","response_desc":"Success"}
6.2 History Transaction
In the General API service, this function is to check mutations or customer transaction history using the OVO Tokenize payment channel.
Start date that you want to view transactions for. starting from today or before from today.
end_date
Datetime
YYYY-MM-DD
M
The date until the last day you want to see the transaction history. End date it can from before today until today.
page
Numeric
M
Page of view history transaction.
limit
Numeric
M
Number of transactions history displayed
perpage
signature
Alphanumeric
M
sha1(md5(user_id + password +
phone_no))
<?xml version="1.0" encoding="UTF-8"?><faspay> <request>History OVO Open API</request> <merchant_id>99999</merchant_id> <merchant>FASPAY STORE</merchant> <phone_no>081382826301</phone_no> <payment_channel>720</payment_channel> <start_date>2021-11-11</start_date> <end_date>2021-11-11</end_date> <page>1</page> <limit>10</limit> <signature>1d4c5f7246a762c4ab61cd3d399efa4c28978bf3</signature></faspay>
{"request":"History OVO Open API","merchant_id":"99999","merchant":"FASPAY STORE","phone_no":"081382826301","payment_channel":"720","start_date":"2021-11-11","end_date":"2021-11-11","page":"1","limit":"10","signature":"1d4c5f7246a762c4ab61cd3d399efa4c28978bf3"}
You will get the response:
Parameter
Data Type
M/O/C
Description
response
Alphanumeric
O
Response description
phone_no
Numeric
M
Customer phone number
merchant_id
Numeric
M
Merchant code from Faspay = BOI.
payment_channel
Numeric
M
Channel code of OVO
merchant
Alphanumeric
O
Merchant name
list_transaction
Array
M
List history transaction customer.
transaction_(count)
Array
M
Number of list history transaction (example:
transaction_1, transaction_2)
payment_date
Datetime
YYYY-MM-DD
HH:MM:SS (6)
M
Payment date of transaction.
status
Alphanumeric
M
Status transaction.
trx_id
Numeric
M
Transaction ID (Issued/generated by Faspay (Media Indonusa))
Notes: Unique
<?xml version="1.0" encoding="UTF-8"?><faspay> <request>Unlink OVO Open API</request> <merchant_id>99999</merchant_id> <merchant>FASPAY STORE</merchant> <phone_no>081382826301</phone_no> <payment_channel>720</payment_channel> <signature>1d4c5f7246a762c4ab61cd3d399efa4c28978bf3</signature></faspay>
{"request":"Unlink OVO Open API","merchant_id":"99999","merchant":"FASPAY STORE","phone_no":"081382826301","payment_channel":"720","signature":"1d4c5f7246a762c4ab61cd3d399efa4c28978bf3"