hey im getting error in paypalfunction.php like (Parse error: syntax error, unexpected T_IF).
when i inserted this code to my shipping cart. - <form id="frm2" name="frm2" method="post" action="expresscheckout.php">
-
<input name="Button" type="button" class='button' value="Keep Shopping" onclick="window.open('../index.php','_self');"/>
-
<input type='image' name='submit' src='https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif' border='0' align='top' alt='PayPal'/>
-
-
<?php $_SESSION["Payment_Amount"]=$totalCost; ?>
-
<input type="hidden" name="totalCost" value="<?php echo $_SESSION["Payment_Amount"]=$totalCost; ?>" />
-
</form>
when i click on the logo, it gives the error in paypalfunction.php like this Parse error: syntax error, unexpected T_IF in C:\wamp\www\test1\paypalfunctions.php on line 216
Im new to paypal.i have got the Merchant Login and password,and i have inserted password in the $API_Password filed.
plz help
16 6703 - <?php
-
/********************************************
-
Payflow API Module
-
-
Defines all the global variables and the wrapper functions
-
********************************************/
-
$PROXY_HOST = '127.0.0.1';
-
$PROXY_PORT = '808';
-
-
$Env = "live";
-
-
//'------------------------------------
-
//' Payflow API Credentials
-
//'------------------------------------
-
$API_User="xxxxxxxx";
-
// Fill in the API_Password variable yourself, the wizard will not do this automatically
-
$API_Password="xxxxxx";
-
$API_Vendor="xxxxxxxx";
-
$API_Partner="PayPal";
-
-
// BN Code
-
$sBNCode = "PF-ECWizard";
-
-
/*
-
' Define the PayPal Redirect URLs.
-
' This is the URL that the buyer is first sent to do authorize payment with their paypal account
-
' change the URL depending if you are testing on the sandbox or the live PayPal site
-
'
-
' For the sandbox, the URL is https://www.sandbox.paypal.com/cgi-b...heckout&token=
-
' For the live site, the URL is https://www.paypal.com/cgi-bin/websc...heckout&token=
-
*/
-
-
if ($Env == "pilot")
-
{
-
$API_Endpoint = "https://pilot-payflowpro.paypal.com";
-
$PAYPAL_URL = "https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=";
-
}
-
else
-
{
-
$API_Endpoint = "https://payflowpro.paypal.com";
-
$PAYPAL_URL = "https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=";
-
}
-
-
$USE_PROXY = false;
-
-
if (session_id() == "")
-
session_start();
-
-
/* An express checkout transaction starts with a token, that
-
identifies to PayPal your transaction
-
In this example, when the script sees a token, the script
-
knows that the buyer has already authorized payment through
-
paypal. If no token was found, the action is to send the buyer
-
to PayPal to first authorize payment
-
*/
-
-
/*
-
'-------------------------------------------------------------------------------------------------------------------------------------------
-
' Purpose: Prepares the parameters for the shortcut implementation of SetExpressCheckout
-
' Inputs:
-
' paymentAmount: Total value of the shopping cart
-
' currencyCodeType: Currency code value
-
' paymentType: paymentType has to be one of the following values: Sale or Order or Authorization
-
' returnURL: the page where buyers return to after they are done with the payment review on PayPal
-
' cancelURL: the page where buyers return to when they cancel the payment review on PayPal
-
'--------------------------------------------------------------------------------------------------------------------------------------------
-
*/
-
function CallShortcutExpressCheckout( $paymentAmount, $currencyCodeType, $paymentType, $returnURL, $cancelURL)
-
{
-
//------------------------------------------------------------------------------------------------------------------------------------
-
// Construct the parameter string that describes SetExpressCheckout in the shortcut implementation
-
-
$nvpstr = "&TENDER=P&ACTION=S";
-
if ("Sale" == $paymentType)
-
{
-
$nvpstr .= "&TRXTYPE=S";
-
}
-
elseif ("Authorization" == $paymentType)
-
{
-
$nvpstr .= "&TRXTYPE=A";
-
}
-
else //default to sale
-
{
-
$nvpstr .= "&TRXTYPE=S";
-
}
-
$nvpstr .= "&AMT=" . $paymentAmount;
-
$nvpstr .= "&CURRENCY=" . $currencyCodeType;
-
$nvpstr .= "&CANCELURL=" . $cancelURL;
-
$nvpstr .= "&RETURNURL=" . $returnURL;
-
-
$_SESSION["currencyCodeType"] = $currencyCodeType;
-
$_SESSION["PaymentType"] = $paymentType;
-
-
// Each part of Express Checkout must have a unique request ID.
-
$unique_id = generateGUID();
-
-
//'---------------------------------------------------------------------------------------------------------------
-
//' Make the API call to Payflow
-
//' If the API call succeded, then redirect the buyer to PayPal to begin to authorize payment.
-
//' If an error occured, show the resulting errors
-
//'---------------------------------------------------------------------------------------------------------------
-
$resArray = hash_call($nvpstr,$unique_id);
-
$ack = strtoupper($resArray["RESULT"]);
-
if($ack=="0")
-
{
-
$token = urldecode($resArray["TOKEN"]);
-
$_SESSION['TOKEN']=$token;
-
}
-
-
return $resArray;
-
}
-
-
/*
-
'-------------------------------------------------------------------------------------------------------------------------------------------
-
' Purpose: Prepares the parameters for the mark implementation of SetExpressCheckout
-
' Inputs:
-
' paymentAmount: Total value of the shopping cart
-
' currencyCodeType: Currency code value the PayPal API
-
' paymentType: paymentType has to be one of the following values: Sale or Order or Authorization
-
' returnURL: the page where buyers return to after they are done with the payment review on PayPal
-
' cancelURL: the page where buyers return to when they cancel the payment review on PayPal
-
' shipToName: the Ship to name entered on the merchant's site
-
' shipToStreet: the Ship to Street entered on the merchant's site
-
' shipToCity: the Ship to City entered on the merchant's site
-
' shipToState: the Ship to State entered on the merchant's site
-
' shipToCountryCode: the Code for Ship to Country entered on the merchant's site
-
' shipToZip: the Ship to ZipCode entered on the merchant's site
-
' shipToStreet2: the Ship to Street2 entered on the merchant's site
-
' phoneNum: the phoneNum entered on the merchant's site
-
'--------------------------------------------------------------------------------------------------------------------------------------------
-
*/
-
function CallMarkExpressCheckout( $paymentAmount, $currencyCodeType, $paymentType, $returnURL,
-
$cancelURL, $shipToName, $shipToStreet, $shipToCity, $shipToState,
-
$shipToCountryCode, $shipToZip, $shipToStreet2, $phoneNum
-
)
-
{
-
//------------------------------------------------------------------------------------------------------------------------------------
-
// Construct the parameter string that describes SetExpressCheckout in the mark implementation
-
-
$nvpstr = "&TENDER=P&ACTION=S";
-
if ("Sale" == $paymentType)
-
{
-
$nvpstr .= "&TRXTYPE=S";
-
}
-
elseif ("Authorization" == $paymentType)
-
{
-
$nvpstr .= "&TRXTYPE=A";
-
}
-
else //default to sale
-
{
-
$nvpstr .= "&TRXTYPE=S";
-
}
-
$nvpstr .= "&AMT=" . $paymentAmount;
-
$nvpstr .= "&CURRENCY=" . $currencyCodeType;
-
$nvpstr .= "&CANCELURL=" . $cancelURL;
-
$nvpstr .= "&RETURNURL" . $returnURL;
-
$nvpstr .= "&SHIPTOSTREET=" . $shipToStreet;
-
$nvpstr .= "&SHIPTOSTREET2=" . $shipToStreet2;
-
$nvpstr .= "&SHIPTOCITY=" . $shipToCity;
-
$nvpstr .= "&SHIPTOSTATE=" . $shipToState;
-
$nvpstr .= "&SHIPTOCOUNTRY=" . $shipToCountryCode;
-
$nvpstr .= "&SHIPTOZIP=" . $shipToZip;
-
$nvpstr .= "&ADDROVERRIDE=1"; // address override
-
-
$_SESSION["currencyCodeType"] = $currencyCodeType;
-
$_SESSION["PaymentType"] = $paymentType;
-
-
// Each part of Express Checkout must have a unique request ID.
-
$unique_id = generateGUID();
-
-
//'---------------------------------------------------------------------------------------------------------------
-
//' Make the API call to Payflow
-
//' If the API call succeded, then redirect the buyer to PayPal to begin to authorize payment.
-
//' If an error occured, show the resulting errors
-
//'---------------------------------------------------------------------------------------------------------------
-
$resArray = hash_call($nvpstr,$unique_id);
-
$ack = strtoupper($resArray["RESULT"]);
-
if($ack=="0")
-
{
-
$token = urldecode($resArray["TOKEN"]);
-
$_SESSION['TOKEN']=$token;
-
}
-
-
return $resArray;
-
}
-
-
/*
-
'-------------------------------------------------------------------------------------------
-
' Purpose: Prepares the parameters for GetExpressCheckoutDetails.
-
'
-
' Inputs:
-
' None
-
' Returns:
-
' The NVP Collection object of the GetExpressCheckoutDetails response.
-
'-------------------------------------------------------------------------------------------
-
*/
-
function GetShippingDetails( $token )
-
{
-
//'--------------------------------------------------------------
-
//' At this point, the buyer has completed authorizing the payment
-
//' through Payflow. The function will call Payflow to obtain the details
-
//' of the authorization, incuding any shipping information of the
-
//' buyer. Remember, the authorization is not a completed transaction
-
//' at this state - the buyer still needs an additional step to finalize
-
//' the transaction
-
//'--------------------------------------------------------------
-
-
//'---------------------------------------------------------------------------
-
//' Build a second API request to Payflow, using the token as the
-
//' ID to get the details on the payment authorization
-
//'---------------------------------------------------------------------------
-
$paymentType = $_SESSION['paymentType'];
-
$nvpstr = "&TOKEN=" . $token . "&TENDER=P&ACTION=G"
-
if ("Sale" == $paymentType)
-
{
-
$nvpstr .= "&TRXTYPE=S";
-
}
-
elseif ("Authorization" == $paymentType)
-
{
-
$nvpstr .= "&TRXTYPE=A";
-
}
-
else //default to sale
-
{
-
$nvpstr .= "&TRXTYPE=S";
-
}
-
-
// Each part of Express Checkout must have a unique request ID.
-
$unique_id = generateGUID();
-
-
//'---------------------------------------------------------------------------
-
//' Make the API call and store the results in an array.
-
//' If the call was a success, show the authorization details, and provide
-
//' an action to complete the payment.
-
//' If failed, show the error
-
//'---------------------------------------------------------------------------
-
$resArray = hash_call($nvpstr,$unique_id);
-
$ack = strtoupper($resArray["RESULT"]);
-
if($ack == "0")
-
{
-
$_SESSION['payer_id'] = $resArray['PAYERID'];
-
}
-
return $resArray;
-
}
-
-
/*
-
'-------------------------------------------------------------------------------------------------------------------------------------------
-
' Purpose: Prepares the parameters for DoExpressCheckoutPayment.
-
'
-
' Inputs:
-
' FinalPaymentAmt - the total transaction amount.
-
' Returns:
-
' The NVP Collection object of the DoExpressCheckoutPayment response.
-
' Note:
-
' There are other optional parameters that can be passed to DoExpressCheckoutPayment that are not used here.
-
' See Table 7.6 in http://www.paypal.com/en_US/pdf/PayflowPro_Guide.pdf for details on the optional parameters.
-
'--------------------------------------------------------------------------------------------------------------------------------------------
-
*/
-
function ConfirmPayment( $FinalPaymentAmt )
-
{
-
/* Gather the information to make the final call to
-
finalize the PayPal payment. The variable nvpstr
-
holds the name value pairs
-
*/
-
-
//Format the other parameters that were stored in the session from the previous calls
-
$token = $_SESSION['token'];
-
$paymentType = $_SESSION['paymentType'];
-
$currencyCodeType = $_SESSION['currencyCodeType'];
-
$payerID = $_SESSION['payer_id'];
-
-
$serverName = $_SERVER['SERVER_NAME'];
-
-
$nvpstr = "&TENDER=P&ACTION=D";
-
if ("Sale" == $paymentType)
-
{
-
$nvpstr .= "&TRXTYPE=S";
-
}
-
elseif ("Authorization" == $paymentType)
-
{
-
$nvpstr .= "&TRXTYPE=A";
-
}
-
else //default to sale
-
{
-
$nvpstr .= "&TRXTYPE=S";
-
}
-
-
$nvpstr .= "&TOKEN=" . $token . "&PAYERID=" . $payerID . "&AMT=" . $FinalPaymentAmt;
-
$nvpstr .= '&CURRENCY=' . $currencyCodeType . '&IPADDRESS=' . $serverName;
-
-
// Each part of Express Checkout must have a unique request ID.
-
// Save it as a session variable in order to avoid duplication
-
$unique_id = isset($_SESSION['unique_id']) ? $_SESSION['unique_id'] : generateGUID();
-
$_SESSION['unique_id'] = $unique_id;
-
-
/* Make the call to PayPal to finalize payment
-
If an error occured, show the resulting errors
-
*/
-
$resArray = hash_call($nvpstr,$unique_id);
-
-
/* Display the API response back to the browser.
-
If the response from PayPal was a success, display the response parameters'
-
If the response was an error, display the errors received using APIError.php.
-
*/
-
$ack = strtoupper($resArray["RESULT"]);
-
-
return $resArray;
-
}
-
-
/*
-
'-------------------------------------------------------------------------------------------------------------------------------------------
-
' Purpose: Prepares the parameters for direct payment (credit card) and makes the call.
-
'
-
' Inputs:
-
' paymentType: paymentType has to be one of the following values: Sale or Order
-
' paymentAmount: Total value of the shopping cart
-
' creditCardType Credit card type has to one of the following values: Visa or MasterCard or Discover or Amex or Switch or Solo
-
' creditCardNumber Credit card number
-
' expDate Credit expiration date
-
' cvv2 CVV2
-
' firstName Customer's First Name
-
' lastName Customer's Last Name
-
' street Customer's Street Address
-
' city Customer's City
-
' state Customer's State
-
' zip Customer's Zip
-
' countryCode Customer's Country represented as a PayPal CountryCode
-
' currencyCode Customer's Currency represented as a PayPal CurrencyCode
-
' orderdescription Short textual description of the order
-
'
-
' Note:
-
' There are other optional inputs for credit card processing that are not presented here.
-
' For a complete list of inputs available, please see the documentation here for US and UK:
-
' http://www.paypal.com/en_US/pdf/PayflowPro_Guide.pdf
-
' https://www.paypal.com/en_GB/pdf/PP_...ationGuide.pdf
-
'
-
' Returns:
-
' The NVP Collection object of the Response.
-
'--------------------------------------------------------------------------------------------------------------------------------------------
-
*/
-
function DirectPayment( $paymentType, $paymentAmount, $creditCardType, $creditCardNumber, $expDate, $cvv2, $firstName, $lastName, $street, $city, $state, $zip, $countryCode, $currencyCode, $orderdescription )
-
{
-
// Construct the parameter string that describes the credit card payment
-
$replaceme = array("-", " ");
-
$card_num = str_replace($replaceme,"",$creditCardNumber);
-
-
$nvpstr = "&TENDER=C";
-
if ("Sale" == $paymentType)
-
{
-
$nvpstr .= "&TRXTYPE=S";
-
}
-
elseif ("Authorization" == $paymentType)
-
{
-
$nvpstr .= "&TRXTYPE=A";
-
}
-
else //default to sale
-
{
-
$nvpstr .= "&TRXTYPE=S";
-
}
-
-
// Other information
-
$ipaddr = $_SERVER['REMOTE_ADDR'];
-
-
$nvpstr .= '&ACCT='.$card_num.'&CVV2='.$cvv2.'&EXPDATE='.$expDate.'&ACCTTYPE='.$creditCardType.'&AMT='.$paymentAmount.'&CURRENCY='.$currencyCode;
-
$nvpstr .= '&FIRSTNAME='.$firstName.'&LASTNAME='.$lastName.'&STREET='.$street.'&CITY='.$city.'&STATE='.$state.'&ZIP='.$zip.'&COUNTRY='.$countryCode;
-
$nvpstr .= '&CLIENTIP='.$ipaddr.'&INVNUM='.$order_num.'&ORDERDESC='.$orderdescription;
-
// Transaction results (especially values for declines and error conditions) returned by each PayPal-supported
-
// processor vary in detail level and in format. The Payflow Verbosity parameter enables you to control the kind
-
// and level of information you want returned.
-
// By default, Verbosity is set to LOW. A LOW setting causes PayPal to normalize the transaction result values.
-
// Normalizing the values limits them to a standardized set of values and simplifies the process of integrating
-
// the Payflow SDK.
-
// By setting Verbosity to MEDIUM, you can view the processor’s raw response values. This setting is more “verbose”
-
// than the LOW setting in that it returns more detailed, processor-specific information.
-
// Review the chapter in the Developer's Guides regarding VERBOSITY and the INQUIRY function for more details.
-
// Set the transaction verbosity to MEDIUM.
-
$nvpstr .= '&VERBOSITY=MEDIUM';
-
-
// The $unique_id field is storing our unique id that we'll use in the request id header.
-
$unique_id = date('ymd-H').rand(1000,9999);
-
-
'-------------------------------------------------------------------------------------------
-
' Make the call to Payflow to finalize payment
-
' If an error occured, show the resulting errors
-
'-------------------------------------------------------------------------------------------
-
$resArray = hash_call($nvpstr,$unique_id);
-
-
return $resArray;
-
}
-
-
/**
-
'-------------------------------------------------------------------------------------------------------------------------------------------
-
* hash_call: Function to perform the API call to Payflow
-
* @nvpStr is nvp string.
-
* returns an associtive array containing the response from the server.
-
'-------------------------------------------------------------------------------------------------------------------------------------------
-
*/
-
function hash_call($nvpStr,$unique_id)
-
{
-
//declaring of global variables
-
global $API_Endpoint, $API_User, $API_Password, $API_Vendor, $API_Partner;
-
global $USE_PROXY, $PROXY_HOST, $PROXY_PORT;
-
global $gv_ApiErrorURL;
-
global $sBNCode;
-
-
-
//NVPRequest for submitting to server
-
$nvpreq = "USER=".$API_User.'&VENDOR='.$API_Vendor.'&PARTNER='.$API_Partner.'&PWD='.$API_Password . $nvpStr . "&BUTTONSOURCE=" . urlencode($sBNCode);
-
-
$len = strlen($nvpreq);
-
-
$headers[] = "Content-Type: text/namevalue";
-
$headers[] = "Content-Length: ".$len
-
// Set the server timeout value to 45, but notice below in the cURL section, the timeout
-
// for cURL is set to 90 seconds. Make sure the server timeout is less than the connection.
-
$headers[] = "X-VPS-CLIENT-TIMEOUT: 45";
-
$headers[] = "X-VPS-REQUEST-ID:" . $unique_id;
-
-
// set the host header
-
if ($Env == "pilot")
-
{
-
$headers[] = "Host: pilot-payflowpro.paypal.com";
-
}
-
else
-
{
-
$headers[] = "Host: payflowpro.paypal.com";
-
}
-
-
//setting the curl parameters.
-
$ch = curl_init();
-
curl_setopt($ch, CURLOPT_URL,$API_Endpoint);
-
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
-
curl_setopt($ch, CURLOPT_VERBOSE, 1);
-
-
//turning off the server and peer verification(TrustManager Concept).
-
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
-
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
-
-
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
-
curl_setopt($ch, CURLOPT_TIMEOUT, 90); // times out after 90 secs
-
curl_setopt($ch, CURLOPT_POST, 1);
-
-
//if USE_PROXY constant set to TRUE in Constants.php, then only proxy will be enabled.
-
//Set proxy name to PROXY_HOST and port number to PROXY_PORT in constants.php
-
if($USE_PROXY)
-
curl_setopt ($ch, CURLOPT_PROXY, $PROXY_HOST. ":" . $PROXY_PORT);
-
-
-
//setting the nvpreq as POST FIELD to curl
-
curl_setopt($ch, CURLOPT_POSTFIELDS, $nvpreq);
-
-
//getting response from server
-
$response = curl_exec($ch);
-
-
//convrting NVPResponse to an Associative Array
-
$nvpResArray=deformatNVP($response);
-
$nvpReqArray=deformatNVP($nvpreq);
-
$_SESSION['nvpReqArray']=$nvpReqArray;
-
-
if (curl_errno($ch))
-
{
-
// moving to display page to display curl errors
-
$_SESSION['curl_error_no']=curl_errno($ch) ;
-
$_SESSION['curl_error_msg']=curl_error($ch);
-
-
//Execute the Error handling module to display errors.
-
}
-
else
-
{
-
//closing the curl
-
curl_close($ch);
-
}
-
-
return $nvpResArray;
-
}
-
-
/*'----------------------------------------------------------------------------------
-
Purpose: Redirects to PayPal.com site.
-
Inputs: NVP string.
-
Returns:
-
----------------------------------------------------------------------------------
-
*/
-
function RedirectToPayPal ( $token )
-
{
-
global $PAYPAL_URL;
-
-
// Redirect to paypal.com here
-
$payPalURL = $PAYPAL_URL . $token;
-
header("Location: ".$payPalURL);
-
}
-
-
-
/*'----------------------------------------------------------------------------------
-
* This function will take NVPString and convert it to an Associative Array and it will decode the response.
-
* It is usefull to search for a particular key and displaying arrays.
-
* @nvpstr is NVPString.
-
* @nvpArray is Associative Array.
-
----------------------------------------------------------------------------------
-
*/
-
function deformatNVP($nvpstr)
-
{
-
$intial=0;
-
$nvpArray = array();
-
-
while(strlen($nvpstr))
-
{
-
//postion of Key
-
$keypos= strpos($nvpstr,'=');
-
//position of value
-
$valuepos = strpos($nvpstr,'&') ? strpos($nvpstr,'&'): strlen($nvpstr);
-
-
/*getting the Key and Value values and storing in a Associative Array*/
-
$keyval=substr($nvpstr,$intial,$keypos);
-
$valval=substr($nvpstr,$keypos+1,$valuepos-$keypos-1);
-
//decoding the respose
-
$nvpArray[urldecode($keyval)] =urldecode( $valval);
-
$nvpstr=substr($nvpstr,$valuepos+1,strlen($nvpstr));
-
}
-
return $nvpArray;
-
}
-
-
function generateCharacter () {
-
$possible = "1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
-
$char = substr($possible, mt_rand(0, strlen($possible)-1), 1);
-
return $char;
-
}
-
-
function generateGUID () {
-
$GUID = generateCharacter().generateCharacter().generateCharacter().generateCharacter().generateCharacter().generateCharacter().generateCharacter().generateCharacter().generateCharacter()."-";
-
$GUID = $GUID .generateCharacter().generateCharacter().generateCharacter().generateCharacter()."-";
-
$GUID = $GUID .generateCharacter().generateCharacter().generateCharacter().generateCharacter()."-";
-
$GUID = $GUID .generateCharacter().generateCharacter().generateCharacter().generateCharacter()."-";
-
$GUID = $GUID .generateCharacter().generateCharacter().generateCharacter().generateCharacter().generateCharacter().generateCharacter().generateCharacter().generateCharacter().generateCharacter().generateCharacter().generateCharacter().generateCharacter();
-
return $GUID;
-
}
-
-
?>
in this at the function named GetShippingDetails( $token )
at the line if ("Sale" == $paymentType) here it is giving error
as Parse error: syntax error, unexpected T_IF
line 213 is missing a semi-colon.
EDIT: please post in future not the whole code, the GetShippingDetails() function would have been enough.
rule of thumb: "unexpected T_*" means in 99% of the cases, that there is a basic syntax error like: missing semi-colon, missing (concatenation) operator, etc.
error shows in line no. 214
did you correct what I pointed out?
yes Dormilich its in the line no. 214
did you correct what I pointed out?!
ok i corrected it but now i have error in Parse error: syntax error, unexpected T_STRING in on line 382
correct, that whole comment is not a comment. compare it to the other comments and make the necessary adjustments.
You are not writing BASIC here. Comment syntax is different. -
/**
-
* Multi line comment
-
*/
-
// Single line comment #1
-
# Single line comment #2
-
ok i got the minor error but now i get error in line no. 415 ($headers[] = "X-VPS-CLIENT-TIMEOUT: 45";) plz help me
im new to this,i just wanted to integrate express checkout flow in my page.
advanced thanks for supportting me.
hey i just left ; sorry for it.
what does this function do curl_init()
NOW I am getting this SetExpressCheckoutDetails API call failed. Error Message: Invalid amountError Code: 4
curl_init()
the API error, I guess you made the wrong input. please refer to the API to correct the value.
now it showing this SetExpressCheckoutDetails API call failed. Error Message: Invalid vendor accountError Code: 26
sorry, I don’t know the details of this API, but any requirements/errors should be mentioned in the API documentation.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Robert Bowen |
last post by:
Hello all. I have been given mock-ups (in static HTML) of some pages
for a site I am working on. The client would like these pages to look
exactly as they do now. The problem is that the content is...
|
by: Don Wash |
last post by:
Hi There!
How do I manipulate folders in Outlook Express (Not Outlook)? I need to read
messages in the mail folders as well as newsgroups.
I've search on the net but all I found is how to send...
|
by: Alvin Bruney [MVP] |
last post by:
Exceptions must not be used to control program flow. I intend to show that
this statement is flawed.
In some instances, exceptions may be used to control program flow in ways
that can lead to...
|
by: Mohan |
last post by:
Hi,
I am C# .NET learner.
I wanted to do the checkout/CheckIn of the files which are under
clearcase source control.
Please let me know the procedure to checkout a file programmatically...
|
by: kellyonlyone |
last post by:
E-XD++ MFC Library Enterprise Edition V9.80 is released (100% Source
Code)!
("The only Flow/Diagramming Kits that provides full source code of
components for MFC and ActiveX in a single package!")...
|
by: jecha |
last post by:
I'm implementing a shopping cart but am having a problem in checking out a person who has added item in his/her shopping busket.The code for the checkout.php script is given below
<?...
|
by: gregerly |
last post by:
Hello,
I once again turn to this community of genius' for some help with a problem. I've got a shopping cart (which is working well so far) that I will be implementing all kinds of AJAX...
|
by: =?Utf-8?B?SmltIFJvZGdlcnM=?= |
last post by:
My question is simple:
How does one debug ASP Classic with Microsoft Visual Web
Developer Express 2005 ("VWD")?
Looming in the back of anyone's mind when you see a posting
like this on any...
|
by: rockdale |
last post by:
Checkout the link http://www.aim.com/aimexpress.adp and click the
lunch aimexpress.
they are written by ASPX. I am wondering do they use AJAX only or do
they use some fancy javascript with RPC?...
|
by: omerbutt |
last post by:
hi I nee d a little guidance regarding google checkout i searched it on google and it took me too a page where it asked me to login through google account and after logging in it was asking for my...
|
by: Kemmylinns12 |
last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
|
by: antdb |
last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine
In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
|
by: Oralloy |
last post by:
Hello Folks,
I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA.
My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
|
by: BLUEPANDA |
last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
|
by: Rahul1995seven |
last post by:
Introduction:
In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
|
by: Johno34 |
last post by:
I have this click event on my form. It speaks to a Datasheet Subform
Private Sub Command260_Click()
Dim r As DAO.Recordset
Set r = Form_frmABCD.Form.RecordsetClone
r.MoveFirst
Do
If...
|
by: ezappsrUS |
last post by:
Hi,
I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...
|
by: jack2019x |
last post by:
hello, Is there code or static lib for hook swapchain present?
I wanna hook dxgi swapchain present for dx11 and dx9.
|
by: DizelArs |
last post by:
Hi all)
Faced with a problem, element.click() event doesn't work in Safari browser.
Tried various tricks like emulating touch event through a function:
let clickEvent = new Event('click', {...
| |