To enable this payment method, please contact our Solution Officer.
This article will explain additional technical requirement for enabling BCA KlikPay. This development is mandatory for SNAP & Core API.
The customer journey for BCA KlikPay will be as followed:
The redirection process will be done by calling the redirect URL and including transaction_id with GET method.
The redirect URL called can be set by Merchant through the Merchant Adminstration Portal (MAP), by going to the “Settings > Configuration > Finish Redirection URL” tabs on the left side of the dashboard.
For example: If the redirect URL of merchant is www.redirectme.com, customer will be redirected to url below:
After the redirection, merchant have to show the result of transaction directly on redirection page. Merchant have to get the latest transaction status from get Transaction Status API ( https://api-docs.midtrans.com/#get-transaction-status ) by using the transaction_Id provided on the redirection URL.
Please show a message in text based on transaction_status. If the transaction_status is settlement show message like “payment success”. Otherwise show message like “payment failed.” We suggest to show this message “pembayaran berhasil” / “payment success” for success.
These code show how’s the logic work in php. Please adjust the code with your tech stack.
require_once(dirname(__FILE__) . '/../../Veritrans.php');
Veritrans_Config::$ServerKey = '<your server key>';
$data = Veritrans_Transaction::status($_GET['id']);
if($data->transaction_status == settlement)
echo `payment success`;
echo 'payment failed';
Below are some guide to test cancel and expiry scenario in SANDBOX