Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

MIGS(MasterCard Internet Gateway Service) payment gateway Integration
 
gonzela2006
Member
 
Total Posts:  31
Joined:  2010-01-29
 

Hello,
I want to create a new payment module to accept MIGS(MasterCard Internet Gateway Service).
I’ll post all required information that will allow us to bring this module to live.

we need Migs Merchant ID ,Migs AccessCode, and Migs Signature for implementing the payment gateway in our application

"vpc_AccessCode" the accesscode given by Migs
"vpc_Amount" Amount that is multiplied by 100
"vpc_Command" ='pay',default pay
"vpc_Locale" 'en' // language
"vpc_MerchTxnRef"  orderId // Should be Unique for each payment
"vpc_Merchant"  // merchant ID
"vpc_OrderInfo"  // Desc or and details of Product
"vpc_ReturnURL" // SuccessUrl
"vpc_Version" '1'
&vpc;_SecureHash // create MD5 of all the values that are passed  */

Creating Url

$SECURE_SECRET "YEOCOEN29B0785F1FF1E3C0FA8A3FUJK";  
            
$accessCode '546484645';
            
$merchantId '5465465288';
            if(
$migs_testmode ==1{
                $SECURE_SECRET 
"YEOCOEN29B0785F1FF1E3C0FA8A3FUJK";
                
$accessCode '98989645';
                
$merchantId '56456456489';
            
}
         $amount 
='10.00';
        
$unique_id rand(999999,8988888888);//this is a sample random no
            
$postdata = array(
                    
"vpc_AccessCode" => $accessCode,
                    
"vpc_Amount" => ($amount*100),
                    
"vpc_Command" => 'pay',
                    
"vpc_Locale" => 'en',
                    
"vpc_MerchTxnRef" => $unique_id,
                    
"vpc_Merchant" => $merchantId,
                    
"vpc_OrderInfo" => 'this is a product',
                    
"vpc_ReturnURL" => "https://mywebsite.com/success.php",
                    
"vpc_Version" => '1');

          
            
$vpcURL 'https://migs.mastercard.com.au/vpcpay?';
            
$md5Hash $SECURE_SECRET;
            
$appendAmp 0;


            foreach (
$wpay_postdata as $key => $value{

                
if (strlen($value) > 0{
  
                    
if ($appendAmp == 0{
                        $vpcURL 
.= urlencode($key) . '=' urlencode($value);
                        
$appendAmp 1;
                    
else {
                        $vpcURL 
.= '&' urlencode($key) . "=" urlencode($value);
                    
}
                    $md5Hash 
.= $value;
                
}
            }

            
if (strlen($SECURE_SECRET) > 0{
                $vpcURL 
.= "&vpc;_SecureHash=" strtoupper(md5($md5Hash));
            
}
            header
("Location: " $vpcURL)
or
$HashData =$vpc_AccessCode.$vpc_Amount.'pay'.'en'.$orderid.$vpc_Merchant.$desc.'successurl'.'1';
$URL "https://migs.mastercard.com.au/vpcpay?vpc_AccessCode=$vpc_AccessCode&vpc;_Amount=$vpc_Amount&vpc;_Command=pay&vpc;_Locale=en&vpc;_MerchTxnRef=$orderid&vpc;_Merchant=$vpc_Merchant&vpc;_OrderInfo=$desc&vpc;_ReturnURL=successurl&vpc;_Version=1&vpc;_SecureHash=".strtoupper(md5($HashData));

header("Location: " $URL);

After Payment
After the Successfull Payment the user will be redirected to our successUrl in that url some other variables are also posted

$transactionKey $resp_data['vpc_TransactionNo'];//transaction number form payment Gateway
$cartId         $resp_data['vpc_MerchTxnRef'];//reference from shop OrderId
$transStatus    $resp_data['vpc_TxnResponseCode']//Status Of Payment
$statusmessage  $resp_data['vpc_Message'];//response form payment

    
find the details of the User with $cartId and Update Table Accordingly


 
if($transStatus  == "0" && $statusmessage == 'Approved'{//success
}else{
// Failed}

Really, I need this module urgently.

Thanks,

 
Magento Community Magento Community
Magento Community
Magento Community
 
datnv84
Jr. Member
 
Total Posts:  1
Joined:  2010-06-22
 

Hi, Please see my extension at MasterCard internet Gateway Services (MiGS payments)

 
Magento Community Magento Community
Magento Community
Magento Community
 
Appmerce
Guru
 
Avatar
Total Posts:  376
Joined:  2008-05-13
Amsterdam, The Netherlands
 

We offer a more versatile and much cheaper solution for MiGS and Magento.

 
Magento Community Magento Community
Magento Community
Magento Community
 
hotextension
Jr. Member
 
Avatar
Total Posts:  17
Joined:  2008-07-15
 

Please see my extension if possible give me some recommends

http://hotextension.com/commonwealth-bank-commweb.html

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top