本文整理汇总了PHP中Merchant::setMerchantDetails方法的典型用法代码示例。如果您正苦于以下问题:PHP Merchant::setMerchantDetails方法的具体用法?PHP Merchant::setMerchantDetails怎么用?PHP Merchant::setMerchantDetails使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Merchant
的用法示例。
在下文中一共展示了Merchant::setMerchantDetails方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: add
function add()
{
//debug($_SERVER['DOCUMENT_ROOT']);
include $_SERVER['DOCUMENT_ROOT'] . "/app/webroot/payment/Sfa/BillToAddress.php";
include $_SERVER['DOCUMENT_ROOT'] . "/app/webroot/payment/Sfa/CardInfo.php";
include $_SERVER['DOCUMENT_ROOT'] . "/app/webroot/payment/Sfa/Merchant.php";
include $_SERVER['DOCUMENT_ROOT'] . "/app/webroot/payment/Sfa/MPIData.php";
include $_SERVER['DOCUMENT_ROOT'] . "/app/webroot/payment/Sfa/ShipToAddress.php";
include $_SERVER['DOCUMENT_ROOT'] . "/app/webroot/payment/Sfa/PGResponse.php";
include $_SERVER['DOCUMENT_ROOT'] . "/app/webroot/payment/Sfa/PostLibPHP.php";
include $_SERVER['DOCUMENT_ROOT'] . "/app/webroot/payment/Sfa/PGReserveData.php";
$oMPI = new MPIData();
$oCI = new CardInfo();
$oPostLibphp = new PostLibPHP();
$oMerchant = new Merchant();
$oBTA = new BillToAddress();
$oSTA = new ShipToAddress();
$oPGResp = new PGResponse();
$oPGReserveData = new PGReserveData();
$oMerchant->setMerchantDetails("96039227", "96039227", "96039227", "10.10.10.238", rand() . "", "Ord1234", $_SERVER['HTTP_HOST'] . "/app/webroot/payment/SFAResponse.php", "POST", "INR", "INV123", "req.Sale", "100", "", "Ext1", "true", "Ext3", "Ext4", "New PHP");
$oBTA->setAddressDetails("CID", "Tester", "Aline1", "Aline2", "Aline3", "Pune", "A.P", "48927489", "IND", "tester@soft.com");
$oSTA->setAddressDetails("Add1", "Add2", "Add3", "City", "State", "443543", "IND", "sad@df.com");
#$oMPI->setMPIRequestDetails("1245","12.45","356","2","2 shirts","12","20011212","12","0","","image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, */*","Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)");
//debug( $oPostLibphp);
// debug( $oMerchant);
// debug( $oMerchant);
// debug( $oMerchant);
$oPGResp = $oPostLibphp->postSSL($oBTA, $oSTA, $oMerchant, $oMPI, $oPGReserveData);
if ($oPGResp->getRespCode() == '000') {
$url = $oPGResp->getRedirectionUrl();
#$url =~ s/http/https/;
#print "Location: ".$url."\n\n";
#header("Location: ".$url);
redirect($url);
} else {
print "Error Occured.<br>";
print "Error Code:" . $oPGResp->getRespCode() . "<br>";
print "Error Message:" . $oPGResp->getRespMessage() . "<br>";
}
}
示例2: PostLibPHP
$errMsg = null;
$errCode = null;
$mod1 = null;
$mid1 = null;
$amt = null;
$curr = null;
$npciResp = null;
$epgRefNum = null;
$crdNum = "6076000000000022";
$oPostLibPHP = new PostLibPHP();
$oPSD = new PaySecureDetails();
$oMerchant = new Merchant();
$oPgResponse = new PGResponse();
$oCI = new CardInfo();
$oReserveData = new PGReserveData();
$oMerchant->setMerchantDetails("00001203", "00001203", "00001203", "10.10.10.167", rand() . "", "", "", "", "INR", "INV123", "req.Sale", "10", "", "Ext1", "Ext2", "Ext3", "Ext4", "Ext5");
$oCI->setCardDetails("RUPAY", $crdNum, "234", "2018", "12", "Tester", "DEBIT");
if ($sendA == "N") {
print ".....Inside TestAuth1.php....." . "<br>";
$mod1 = $_POST['Modulus'];
$txnid = $_POST['TxnID'];
$guid = $_POST['GUID'];
$exp1 = $_POST['Exponent'];
$errMsg = $_POST['ErrMsg'];
$errCode = $_POST['ErrCode'];
$crdNum = $_POST['CardNum'];
$epgRefNum = $_POST['EpgTxnID'];
print "Merchant Txn Id : " . $txnid . "<br>";
print "WS Error Code :" . $errCode . "<br>";
print "WS Error Code :" . $errMsg . "<br>";
print "WS GUID : " . $guid . "<br>";
示例3: MPIData
include "Sfa/CardInfo.php";
include "Sfa/Merchant.php";
include "Sfa/MPIData.php";
include "Sfa/ShipToAddress.php";
include "Sfa/PGResponse.php";
include "Sfa/PostLibPHP.php";
include "Sfa/PGReserveData.php";
$oMPI = new MPIData();
$oCI = new CardInfo();
$oPostLibphp = new PostLibPHP();
$oMerchant = new Merchant();
$oBTA = new BillToAddress();
$oSTA = new ShipToAddress();
$oPGResp = new PGResponse();
$oPGReserveData = new PGReserveData();
$oMerchant->setMerchantDetails("00012849", "00012849", "00012849", "193.545.34.33", rand() . "", "Ord123", $baseurl . "payment/SFAResponse.php", "POST", "INR", "INV123", "req.Sale", $applicationfees, "", "Ext1", "true", "Ext3", "Ext4", "Ext5");
$oBTA->setAddressDetails("CID", "Tester", "JBIMS", "Mumbai", "Maharashtra", "Test", "Test", "Test", "IND", "web@jbims.edu");
$oSTA->setAddressDetails("Add1", "Add2", "Add3", "City", "State", "443543", "IND", "tester@soft.com");
$INRapplicationfees = "INR" . $applicationfees;
$applicationfeespaisa = $applicationfees * 100;
$oMPI->setMPIRequestDetails($applicationfeespaisa, $INRapplicationfees, "356", "2", "JBIMS Admission", "", "", "", "0", "", "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, */*", "Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)");
$oPGReserveData->setReserveObj($applicationid, $applicantName, $applicantemailid, $applicationfees, "5", "6", "7", "8", "9", "10");
$oPGResp = $oPostLibphp->postSSL($oBTA, $oSTA, $oMerchant, $oMPI, $oPGReserveData);
if ($oPGResp->getRespCode() == '000') {
$url = $oPGResp->getRedirectionUrl();
//$url =~ s/http/https/;
//print "Location: ".$url."\n\n";
//header("Location: ".$url);
redirect($url);
} else {
print "Error Occured.<br>";
示例4: MPIData
//ini_set('display_errors', '1');
include "Sfa/BillToAddress.php";
include "Sfa/CardInfo.php";
include "Sfa/Merchant.php";
include "Sfa/MPIData.php";
include "Sfa/ShipToAddress.php";
include "Sfa/PGResponse.php";
include "Sfa/PostLibPHP.php";
include "Sfa/PGReserveData.php";
$oMPI = new MPIData();
$oCI = new CardInfo();
$oPostLibphp = new PostLibPHP();
$oMerchant = new Merchant();
$oBTA = new BillToAddress();
$oSTA = new ShipToAddress();
$oPGResp = new PGResponse();
$oPGReserveData = new PGReserveData();
$oMerchant->setMerchantDetails("00002116", "00002116", "00002116", "10.10.10.238", rand() . "", "OrderRef1", "", "", "INR", "INV1234", "req.Sale", "100", "", "Ext1", "Ext2", "Ext3", "Ext4", "Ext5");
$oSTA->setAddressDetails("Add1", "Add2", "Add3", "City", "State", "443543", "IND", "sad@df.com");
$oBTA->setAddressDetails("CID", "Tester", "Aline1", "Aline2", "Aline3", "Pune", "MH", "48927489", "IND", "tester@soft.com");
$oCI->setCardDetails("MC", "5081264401288025", "234", "2028", "12", "Tester", "CREDI");
$oMPI->setMPIResponseDetails("02", "NTBlZjRjMThjMjc1NTUxYzk1MTY=", "Y", "AAAAAAAAAAAAAAAAAAAAAAAAAAA=", "84759435", "1000", "356");
$oPGResp = $oPostLibphp->postMOTO($oBTA, $oSTA, $oMerchant, $oMPI, $oCI, $oPGReserveData);
$oPGResp->getResponse($oResp);
print "Response Code:" . $oPGResp->getRespCode() . "<br>";
print "Response Message:" . $oPGResp->getRespMessage() . "<br>";
print "Transaction ID:" . $oPGResp->getTxnId() . "<br>";
print "Epg Transaction ID:" . $oPGResp->getEpgTxnId() . "<br>";
print "Auth Id Code :" . $oPGResp->getAuthIdCode() . "<br>";
print "RRN :" . $oPGResp->getRRN() . "<br>";
print "CVResp Code :" . $oPGResp->getCVRespCode() . "<br>";
示例5: redirectAction
public function redirectAction()
{
$session = Mage::getSingleton('checkout/session');
$redirected = $session->getData("redirected");
if ($redirected == "true") {
$session->setData("redirected", "false");
$cartURL = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB) . "checkout/cart/";
echo "<script language='javascript' type='text/javascript'>setTimeout('window.self.location=\\'" . $cartURL . "\\''); </script>";
exit;
}
$session->setpaysealStandardQuoteId($session->getQuoteId());
$config = Mage::getSingleton('payseal/config');
$order = $this->getOrder();
if (!$order->getId()) {
$this->norouteAction();
return;
}
$shippingAdd = $order->getShippingAddress()->getData();
$billingAdd = $order->getBillingAddress()->getData();
include "Sfa/BillToAddress.php";
include "Sfa/CardInfo.php";
include "Sfa/Merchant.php";
include "Sfa/MPIData.php";
include "Sfa/ShipToAddress.php";
include "Sfa/PGResponse.php";
include "Sfa/PostLibPHP.php";
include "Sfa/PGReserveData.php";
$oMPI = new MPIData();
$oCI = new CardInfo();
$oPostLibphp = new PostLibPHP();
$oMerchant = new Merchant();
$oBTA = new BillToAddress();
$oSTA = new ShipToAddress();
$oPGResp = new PGResponse();
$oPGReserveData = new PGReserveData();
$merchantId = $config->getMerchantId();
$responseURL = $config->getResponseURL();
$transactionNo = "Transact" . rand();
$oMerchant->setMerchantDetails($merchantId, $merchantId, $merchantId, "", $transactionNo, $order->getId(), $responseURL, "POST", "INR", "", "req.Sale", round($order->getData('grand_total'), 2), "", "", "true", "", "", "");
$oBTA->setAddressDetails($billingAdd['customer_id'], $billingAdd['firstname'] . ' ' . $billingAdd['lastname'], $billingAdd['street'], "", "", $billingAdd['city'], $billingAdd['region'], $billingAdd['postcode'], "IND", $billingAdd['email']);
$oSTA->setAddressDetails($shippingAdd['firstname'], $shippingAdd['lastname'], $shippingAdd['street'], $shippingAdd['city'], $shippingAdd['region'], $shippingAdd['postcode'], "IND", $shippingAdd['email']);
$oPGResp = $oPostLibphp->postSSL($oBTA, $oSTA, $oMerchant, $oMPI, $oPGReserveData);
if ($oPGResp->getRespCode() == "000") {
$debug = Mage::getModel('payseal/api_debug');
$debug->setData("transact_id", $transactionNo);
$debug->setRequestBody(print_r($oMerchant, 1));
$debug->save();
$url = $oPGResp->getRedirectionUrl();
$order->addStatusToHistory($order->getStatus(), Mage::helper('payseal')->__('Customer was redirected to payseal'));
$order->save();
//$this->redirect($url);
$session->setData("redirected", "true");
echo "<html><head>\r\n\t\t\t <title>Processing..</title></head><body><center><div><font size='5' color='#3b4455'>You are redirecting to patment gateway,<br/>Please wait ...<br/>\r\n <font size='3'>(Please do not press 'Refresh' or 'Back' button)</font></font></div>\r\n\t\t\t\t <img src='" . Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN) . "frontend/enterprise/lecom/images/spinner.gif' />\r\n\t\t\t\t </center>\r\n\t\t\t\t </body></html>\r\n <script language='javascript' type='text/javascript'>setTimeout('window.self.location=\\'" . $url . "\\'', 3000); </script>";
} else {
// Mage::logException($oPGResp->getRespMessage());
Mage::getSingleton('core/session')->addError("Error Message:" . $oPGResp->getRespMessage() . " Please choose another payment method");
$this->_redirect('onestepcheckout/?cart=true', array('_secure' => true));
}
}
示例6: postAuth
function postAuth($aoMerchant, $aoCInfo, $aoPGResp, $oPSD, $aoReserveData)
{
$ojMerchant = new Merchant();
$ojCInfo = new CardInfo();
//$oPGResp = new Java('com.opus.epg.sfa.java.PGResponse');
//$ojPSD = new Java('com.opus.epg.sfa.java.PaySecureDetails');
$ojReserveData = new PGReserveData();
$oPostLib = new PostLibPHP();
$oPGResphp = new PGResponse();
## Mandetory checks for Merchant objects
# check for Merchant id and the Message type
#
##
if ($aoMerchant == null) {
$oPGResphp->setRespCode("2");
$oPGResphp->setRespMessage(" Merchant object is null");
return $oPGResphp;
}
if ($aoMerchant->getMerchantID() == null || $aoMerchant->getMerchantID() == "") {
$oPGResphp->setRespCode("2");
$oPGResphp->setRespMessage(" Merchant id is null or Invalid");
return $oPGResphp;
}
if ($aoMerchant->getMessageType() == null || $aoMerchant->getMessageType() == "") {
$oPGResphp->setRespCode("2");
$oPGResphp->setRespMessage(" Message type is null.");
return $oPGResphp;
}
if ($oPSD->getPaysecureResp() == null || $oPSD->getPaysecureResp() == "") {
$oPGResphp->setRespCode("2");
$oPGResphp->setRespMessage(" Invalid Paysecure Response. Transaction cannot be processed.");
return $oPGResphp;
}
if ($oPSD->getPaySecureTxnID() == null || $oPSD->getPaySecureTxnID() == "") {
$oPGResphp->setRespCode("2");
$oPGResphp->setRespMessage(" Invalid PaySecure Txn Id. Transaction cannot be processed.");
return $oPGResphp;
}
if ($oPSD->getAuthAmount() == null || $oPSD->getAuthAmount() == "") {
$oPGResphp->setRespCode("2");
$oPGResphp->setRespMessage(" Error. Auth Amount is Invalid.");
return $oPGResphp;
}
if ($oPSD->getCardAcceptorID() == null || $oPSD->getCardAcceptorID() == "") {
$oPGResphp->setRespCode("2");
$oPGResphp->setRespMessage(" Error. Card Acceptor/Merchant Id is Invalid.");
return $oPGResphp;
}
if ($oPSD->getCurrCode() == null || $oPSD->getCurrCode() == "") {
$oPGResphp->setRespCode("2");
$oPGResphp->setRespMessage(" Invalid Currency code. Transaction cannot be processed.");
return $oPGResphp;
}
# Assigning Merchant object of php to Merchant object of java Sfa
$ojMerchant->setMerchantDetails($aoMerchant->getMerchantID(), $aoMerchant->getVendor(), $aoMerchant->getPartner(), $aoMerchant->getCustIPAddress(), $aoMerchant->getMerchantTxnID(), $aoMerchant->getOrderReferenceNo(), $aoMerchant->getRespURL(), $aoMerchant->getRespMethod(), $aoMerchant->getCurrCode(), $aoMerchant->getInvoiceNo(), $aoMerchant->getMessageType(), $aoMerchant->getAmount(), $aoMerchant->getGMTTimeOffset(), $aoMerchant->getExt1(), $aoMerchant->getExt2(), $aoMerchant->getExt3(), $aoMerchant->getExt4(), $aoMerchant->getExt5());
# Assigning Card Info object of php to Card info object of java Sfa
if ($aoCInfo != null || $aoCInfo != "") {
$ojCInfo->setCardDetails($aoCInfo->getCardType(), $aoCInfo->getCardNum(), $aoCInfo->getCVVNum(), $aoCInfo->getExpDtYr(), $aoCInfo->getExpDtMon(), $aoCInfo->getNameOnCard(), $aoCInfo->getInstrType());
}
if ($aoReserveData != null || $aoReserveData != "") {
$ojReserveData->setReserveObj($aoReserveData->getReserveField1(), $aoReserveData->getReserveField2(), $aoReserveData->getReserveField3(), $aoReserveData->getReserveField4(), $aoReserveData->getReserveField5(), $aoReserveData->getReserveField6(), $aoReserveData->getReserveField7(), $aoReserveData->getReserveField8(), $aoReserveData->getReserveField9(), $aoReserveData->getReserveField10());
}
$strData = $this->buildMerchantBillShip($aoMerchant, null, null);
$oEncryptionUtilenc = new EncryptionUtil();
$strMotoEncryptedData = $aoMerchant->getMerchantID() . trim($aoMerchant->getMerchantTxnID()) . trim($aoMerchant->getCustIPAddress()) . trim($aoMerchant->getAmount()) . trim($aoMerchant->getMessageType()) . trim($aoMerchant->getCurrCode()) . trim($aoMerchant->getInvoiceNo()) . trim($aoCInfo->getCardNum()) . trim($aoCInfo->getExpDtYr()) . trim($aoCInfo->getExpDtMon()) . $aoCInfo->getCVVNum();
$sDigest = $oEncryptionUtilenc->getHMAC($strMotoEncryptedData, trim($this->mstrKeyDir) . $aoMerchant->getMerchantID() . '.key', $aoMerchant->getMerchantID());
if ($sDigest == null || $sDigest == "") {
if ($this->verbose != null && trim($this->verbose) == "true") {
error_log("Error in Encrypting/Hashing Merchant Data.Transaction cannot proceed.", 0);
}
$oPGResphp->setRespCode("2");
$oPGResphp->setRespMessage(" Error while encrypting/hashing data. Transaction cannot be processed.");
return $oPGResphp;
}
$strData = $strData . '&EncryptedData=' . $sDigest;
$strData = $strData . '&IntfVer=ASPV2.0';
$strData = $strData . '&OsType=' . trim($this->mstrOSType);
$strData = $strData . '&LanguageType=php';
$strData = $strData . '&CustIPAddress=' . $aoMerchant->getCustIPAddress();
$strData = $strData . '&InstrType=' . $aoCInfo->getInstrType();
$strData = $strData . '&CardType=' . $aoCInfo->getCardType();
$strData = $strData . '&CardNum=' . $aoCInfo->getCardNum();
$strData = $strData . '&ExpDtYr=' . $aoCInfo->getExpDtYr();
$strData = $strData . '&ExpDtMon=' . $aoCInfo->getExpDtMon();
$strData = $strData . '&CVVNum=' . $aoCInfo->getCVVNum();
$strData = $strData . '&NameOnCard=' . $aoCInfo->getNameOnCard();
if ($aoMPI == null || $aoMPI == "") {
$strData = $strData . '&status=""';
$strData = $strData . '&cavv=""';
$strData = $strData . '&eci=""';
$strData = $strData . '&xid=""';
$strData = $strData . '&purchaseAmount=""';
$strData = $strData . '¤cyVal=""';
$strData = $strData . '&shoppingcontext=""';
} else {
$strData = $strData . '&status=' . $aoMPI->getVBVStatus();
$strData = $strData . '&cavv=' . $aoMPI->getCAVV();
$strData = $strData . '&eci=' . $aoMPI->getECI();
$strData = $strData . '&xid=' . $aoMPI->getXID();
$strData = $strData . '&purchaseAmount=' . $aoMPI->getPurchaseAmount();
//.........这里部分代码省略.........
示例7: MPIData
include "Sfa/CardInfo.php";
include "Sfa/Merchant.php";
include "Sfa/MPIData.php";
include "Sfa/ShipToAddress.php";
include "Sfa/PGResponse.php";
include "Sfa/PostLibPHP.php";
include "Sfa/PGReserveData.php";
$oMPI = new MPIData();
$oCI = new CardInfo();
$oPostLibphp = new PostLibPHP();
$oMerchant = new Merchant();
$oBTA = new BillToAddress();
$oSTA = new ShipToAddress();
$oPGResp = new PGResponse();
$oPGReserveData = new PGReserveData();
$oMerchant->setMerchantDetails("96045893", "96045893", "96045893", "10.10.10.238", rand() . "", "Ord1234", "http://www.qspidersonline.com/SFAResponse.php", "POST", "INR", "INV123", "req.Sale", "100", "", "Ext1", "true", "Ext3", "Ext4", "New PHP");
$oBTA->setAddressDetails("CID", "Tester", "Aline1", "Aline2", "Aline3", "Pune", "A.P", "48927489", "IND", "tester@soft.com");
$oSTA->setAddressDetails("Add1", "Add2", "Add3", "City", "State", "443543", "IND", "sad@df.com");
#$oMPI->setMPIRequestDetails("1245","12.45","356","2","2 shirts","12","20011212","12","0","","image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, */*","Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)");
$oPGResp = $oPostLibphp->postSSL($oBTA, $oSTA, $oMerchant, $oMPI, $oPGReserveData);
if ($oPGResp->getRespCode() == '000') {
$url = $oPGResp->getRedirectionUrl();
#$url =~ s/http/https/;
#print "Location: ".$url."\n\n";
#header("Location: ".$url);
redirect($url);
} else {
print "Error Occured.<br>";
print "Error Code:" . $oPGResp->getRespCode() . "<br>";
print "Error Message:" . $oPGResp->getRespMessage() . "<br>";
}
示例8: MPIData
include "Sfa/CardInfo.php";
include "Sfa/Merchant.php";
include "Sfa/MPIData.php";
include "Sfa/ShipToAddress.php";
include "Sfa/PGResponse.php";
include "Sfa/PostLibPHP.php";
include "Sfa/PGReserveData.php";
$oMPI = new MPIData();
$oCI = new CardInfo();
$oPostLibphp = new PostLibPHP();
$oMerchant = new Merchant();
$oBTA = new BillToAddress();
$oSTA = new ShipToAddress();
$oPGResp = new PGResponse();
$oPGReserveData = new PGReserveData();
$oMerchant->setMerchantDetails("96039227", "96039227", "96039227", "10.10.10.238", rand() . "", "Ord1234", "http://localhost/Payment_Gateway/SFAResponse.php", "POST", "INR", "INV123", "req.Sale", "100", "", "Ext1", "true", "Ext3", "Ext4", "New PHP");
$oBTA->setAddressDetails("CID", "Tester", "Aline1", "Aline2", "Aline3", "Pune", "A.P", "48927489", "IND", "tester@soft.com");
$oSTA->setAddressDetails("Add1", "Add2", "Add3", "City", "State", "443543", "IND", "sad@df.com");
#$oMPI->setMPIRequestDetails("1245","12.45","356","2","2 shirts","12","20011212","12","0","","image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, */*","Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)");
$oPGResp = $oPostLibphp->postSSL($oBTA, $oSTA, $oMerchant, $oMPI, $oPGReserveData);
if ($oPGResp->getRespCode() == '000') {
$url = $oPGResp->getRedirectionUrl();
#$url =~ s/http/https/;
#print "Location: ".$url."\n\n";
#header("Location: ".$url);
redirect($url);
} else {
print "Error Occured.<br>";
print "Error Code:" . $oPGResp->getRespCode() . "<br>";
print "Error Message:" . $oPGResp->getRespMessage() . "<br>";
}