Payment Gateway
  • Home
    • Welcome
      • Cheatsheet
      • Contact Us
      • QRIS
      • Virtual Account
      • E-Wallet
      • Debit & Credit Card
      • Internet Banking
      • Convinient Store
      • Buy Now, Pay Later
  • API Documentation
    • Technical Doc of Fiuu ID
      • Payment Flow Overview
      • Online Payment / Transaction Process
      • Payment Status Flow
      • Security & Data Integrity
        • Verify Key [Confidential]
        • Secret Key [Top Secret]
        • vcode
        • skey
      • Developer Account
      • Hosted Integration APIs
      • Seamless Integration APIs
      • Direct Server Integration APIs
      • Payment Request Parameters
        • Hosted Integration
          • Request Parameters
          • Channel Lists
          • Examples
        • Seamless Integration
          • Request Parameters
          • Channel Details (mpschannel)
        • Direct Server Integration
          • Request Parameters
          • API Response
          • Channel Details (TxnChannel)
      • Payment Response Parameter
        • Payment Status Notification (Merchant Webhook or the 3 Endpoints)
          • Return URL with IPN (Instant Payment Notification)
          • Notify URL with IPN
          • Callback URL with IPN
      • TL; DR?
      • Comparison Chart
      • Merchant Request APIs
      • Error Codes
      • Resources
Powered by GitBook
On this page
  • Using PHP to generate a GET payment request
  • Using PHP to generate a POST form payment request
  • Using ASP to generate a GET payment request
  • Using ASP to generate a POST form payment request
  1. API Documentation
  2. Technical Doc of Fiuu ID
  3. Payment Request Parameters
  4. Hosted Integration

Examples

Examples of Hosted Integration

Using PHP to generate a GET payment request

<?PHP
echo “<a href=https://pg.e2pay.co.id/RMS/pay/merchantID/?”;
echo “amount=”.$amount.”&”;
echo “orderid=”.urlencode($oid).”&”;
echo “bill_name=”.urlencode($name).”&”;
echo “bill_email=”.urlencode($email).”&”;
echo “bill_mobile=”.urlencode($mobile).”&”;
echo “bill_desc=”.urlencode($description).”&”;
echo “country=”.$country.”&”;
echo “vcode=”.$vcode.”> Pay Now </a>”;
?>

Using PHP to generate a POST form payment request

<?PHP
echo “<form action=’https://pg.e2pay.co.id/RMS/pay/merchantID/’ method=POST >”;
echo “<input type=hidden 	name=amount		value=’$amount’>”;
echo “<input type=hidden 	name=orderid	       value=’$oid’>”;
echo “<input type=hidden 	name=bill_name	value=’$name’>”;
echo “<input type=hidden 	name=bill_email	value=’$email’>”;
echo “<input type=hidden 	name=bill_mobile	value=’$mobile’>;
echo “<input type=hidden 	name=bill_desc	value=’$description’>”;
echo “<input type=hidden 	name=country	       value=’$country’>”;
echo “<input type=hidden 	name=vcode		value=’$vcode’>”;
echo “<input type=submit 	                     value=’ PAY NOW ’>”;
echo “</form>”;
?>

Using ASP to generate a GET payment request

<%
dim amount, orderid, name, email, mobile, desc, country, vcode
amount	= ”18.99”
orderid= ”DG873MH370”
name	= ”Mr Albert Anderson”
email	= ”a.anderson@somewhere.com”
mobile = ”016-2341234”
desc	= ”DIGI Reload Coupon RM20 with discount”
country= ”MY”
vcode 	= md5(amount & merchantID & orderid & xxxxxxxxxxxx )
// REPLACE xxxxxxxxxxxx with Verify Key
response.write("<a href=https://pg.e2pay.co.id/RMS/pay/merchantID/?")
response.write("amount=” & amount)
response.write("&orderid=” & orderid)
response.write("&bill_name=” & name)
response.write("&bill_email=” & email)
response.write("&bill_mobile=” & mobile)
response.write("&bill_desc=” & desc)
response.write("&country=” & country)
response.write("&vcode=” & vcode)
response.write("’> Pay Now </a>”)
%>

Using ASP to generate a POST form payment request

<%
dim amount, orderid, name, email, mobile, desc, country, vcode
amount	= ”28.99”
orderid= ”DG873MH37o”
name	= ”Mr Samuel Lim”
email	= ”sam.lim@nowhere.com”
mobile	= ”86-232389872”
desc	= ”Facebook Prepaid Reload Coupon RM30 with discount”
country= ”CN”
vcode 	= md5(amount & merchantID & orderid & xxxxxxxxxxxx )
// REPLACE xxxxxxxxxxxx with Verify Key
response.write(“<form action=’https://pg.e2pay.co.id/RMS/pay/merchantID/’ method=POST >)
response.write(“<input type=hidden name=amount value=”&amount&”>)
response.write(“<input type=hidden name=orderid value=”&orderid& ”>)
response.write(“<input type=hidden name=bill_name value=”&name& ”>)
response.write(“<input type=hidden name=bill_email value=”&email&”>)
response.write(“<input type=hidden name=bill_mobile value=”&mobile&”>)
response.write(“<input type=hidden name=bill_desc value=”&desc&”>)
response.write(“<input type=hidden name=country value=”&country&”>)
response.write(“<input type=hidden name=vcode value=”&vcode&”>)
response.write(“<input type=submit value=’ PAY NOW ’ ”>)
response.write(“</form>”)
%>

Last updated 5 months ago