API/SCI Guide

How to accept Payments on your Website

This sample code describes how to interface world wide payment system to the MultiWeb Pay Payment System. This interface uses standard HTML forms to provide a simple way for online merchants to integrate MultiWeb Pay as a method of payment for their services.

Exchanger vs Merchant posting url

EXCHANGER POSTING URL https://www.multiwebpay.com/exchange.htm

MERCHANT POSTING URL(MPAY WALLET+OTHER E-CURRENCY)https://www.multiwebpay.com/process.htm

MERCHANT POSTING URL(ONLY MPAY WALLET)https://www.multiwebpay.com/mpay_sci.php

PAYMENT TRANSACTION API CODE:



REQUIRED AND ASSOCIATED OPTIONAL HIDDEN TEXT FIELDS
Field Name Field Value and Usage
member Your username or your registered E-mail Address
product Your product ID or product name
action Use "product" if this product is pre-defined
Use "donation" if this is donation payment
Use "subscription" if this product is subscription
Use "payment" if this is simple payment transaction
price Price of your product, $
quantity Product quantity
period Used subscription rebilling period, days
trial Trial period, days
setup Used for Setup fee, $
tax Used for Tax fee, $
shipping Used for Shipping fee, $
ureturn Use return URL of the page
unotify Use notify URL of the page
ucancel Use cancel URL of the page
comments Used for Product description

RETURNED HIDDEN TEXT FIELDS
Field Name Usage
action Type of the transaction i.e product or donation or subscription or payment
pid Internal product ID
pname Product name
buyer Buyer username
total Total amount
quantity Quantity of the product
comments Buyer notes
referer System referer URL (https://www.multiwebpay.com)
tid Transaction Id
status OK/ERR
hash security hash value is md5($_POST[action].$_POST[total].$_POST[tid].$security_word)
PHP IPN script example:


$security_word = 'xxxxxxx';

if ($_POST['status'] != "") {

	if ($_POST['status'] == "OK") {
    
    	//check hash matching
        
        $expected_hash = md5($_POST[action].$_POST[total].$_POST[tid].$security_word);
        
        if ($expected_hash == $_POST['hash']) {
        
        //transaction ok, update order on database
        
        	$cart_id = $_GET['cart_id'];
        
        
        }
    
    
    }


}



API GUIDE
MultiWeb Pay is a programmatic interface that allows any Merchant to automatically accept payments online. MultiWeb Pay API is a programming interface, which allows you to automate the process of sending and receiving payments.

If you want to accept payments online on your site please click here to download our documentation.