The endpoint URL is a feedback URL that will process the data in the post from the merchant system. For the implementation of the testing, UAT can use URL development.
Integration Method
Development
Request Parameter
Request parameters are parameters that the merchant's system must provide that can be integrated with the system Faspay.
Parameter
Type
M/O/C
Description
<?php$tranid =date("YmdGis");$signaturecc=sha1('##'.strtoupper('sophia_store').'##'.strtoupper('ejeussad').'##'.$tranid.'##1000.00##'.'0'.'##');$post =array("TRANSACTIONTYPE"=>'1',"RESPONSE_TYPE"=>'2',"LANG"=>'',"MERCHANTID"=>'sophia_store',"PAYMENT_METHOD"=>'1',"TXN_PASSWORD"=>'ejeussad',"MERCHANT_TRANID"=> $tranid,"CURRENCYCODE"=>'IDR',"AMOUNT"=>'1000.00',"CUSTNAME"=>'John Doe',"CUSTEMAIL"=>'john@gmail.com',"DESCRIPTION"=>'Faber Castell Pencil',"RETURN_URL"=>'http://localhost/creditcard/merchant_return_page.php',"SIGNATURE"=> $signaturecc,"BILLING_ADDRESS"=>'Jl. pintu air raya',"BILLING_ADDRESS_CITY"=>'Jakarta',"BILLING_ADDRESS_REGION"=>'DKI Jakarta',"BILLING_ADDRESS_STATE"=>'DKI Jakarta',"BILLING_ADDRESS_POSCODE"=>'10710',"BILLING_ADDRESS_COUNTRY_CODE"=>'ID',"RECEIVER_NAME_FOR_SHIPPING"=>'John Doe',"SHIPPING_ADDRESS"=>'Jl. pintu air raya',"SHIPPING_ADDRESS_CITY"=>'Jakarta',"SHIPPING_ADDRESS_REGION"=>'DKI Jakarta',"SHIPPING_ADDRESS_STATE"=>'DKI Jakarta',"SHIPPING_ADDRESS_POSCODE"=>'10710',"SHIPPING_ADDRESS_COUNTRY_CODE"=>'ID',"SHIPPINGCOST"=>'0.00',"PHONE_NO"=>'0897867688989',"MPARAM1"=>'',"MPARAM2"=>'',"PYMT_IND"=>'',"PYMT_CRITERIA"=>'',"PYMT_TOKEN"=>'',/* ==== customize input card page ===== */"style_merchant_name"=>'black',"style_order_summary"=>'black',"style_order_no"=>'black',"style_order_desc"=>'black',"style_amount"=>'black',"style_background_left"=>'#fff',"style_button_cancel"=>'grey',"style_font_cancel"=>'white',/* ==== logo directly to your url source ==== */"style_image_url"=>'http://url_merchant/image.png', );//Dev ke = https://fpgdev.faspay.co.id/payment$string ='<form method="post" name="form" action="https://fpg.faspay.co.id/payment">'; if ($post !=null) {foreach ($post as $name=>$value) {$string .='<input type="hidden" name="'.$name.'" value="'.$value.'">'; } }$string .='</form>';$string .='<script> document.form.submit();</script>';echo $string;exit;?>
Response Parameter
Response parameters are parameters that will be delivered by the system Faspay in response to the request parameters that have been sent by the merchant system. If no parameters are appropriate / value is incorrect, the transaction will be rejected in the system Faspay.
"PAYMENT_METHOD"=>'1',"MERCHANTID"=>'sophia_store',"MERCHANT_TRANID"=>'2016/03/000072',"ERR_CODE"=>0,"ERR_DESC"=>'No error',"USR_CODE"=>101,"USR_MSG"=>'Transaction approved',"TXN_STATUS"=>'A',"CUSTNAME"=>'John Doe',"DESCRIPTION"=>'DeWalt Standard Heatgun',"EUI"=>'SUC',"CURRENCYCODE"=>'IDR',"AMOUNT"=>'780000.00',"SIGNATURE"=>'387CF32EF09215C73011943F06CB44055CA3BE05',"TRANSACTIONID"=>21536,"TRANSACTIONTYPE"=>1,"TRANDATE"=>'04-03-2016 15:22:46',"ACQUIRER_ID"=>'mandiri',"MPARAM1"=>'',"MPARAM2"=>'',"IS_BLACKLISTED"=>'No',"FRAUDRISKSCORE"=>75,"FRAUDRISKLEVEL"=>2,"EXCEED_HIGH_RISK"=>'Yes',"CARDNAME"=>'John Doe',"CARD_NO_PARTIAL"=>'413718xxxxxx3783',"CARDTYPE"=>'V',"is_on_us"=>'Yes',"ACQUIRER_BANK"=>016,"BANK_RES_CODE"=>00,"BANK_RES_MSG"=>'APPROVED OR COMPLETED',"AUTH_ID"=>657399,"BANK_REFERENCE"=>10519,"WHITELIST_CARD"=>'No'