我正在開發一個網站,我試圖訪問貝寶。所以我試圖使用curl將存儲在我的數據庫中的用戶信息發送到PayPal服務器。我不知道如何做到這一點。在這方面請你能幫助我嗎?如何在curl中設置變量?
我的代碼:
$fetSql ="SELECT * FROM `donator` WHERE `donatorId`='".$_REQUEST['donatorId']."'";
//echo $fetSql;
$fetQry =$db->query($fetSql);
$array =$db->fetch_array($fetQry);
$customer_first_name =$array['donatorFName'];
$customer_last_name =$array['donatorLName'];
$example_payment_amuont =$array['amount'];
$customer_address1 =$array['address1'];
$customer_address2 =$array['address2'];
$customer_city =$array['city'];
$customer_state =$array['state'];
$customer_zip =$array['zip'];
$customer_country =$array['country'];
$customer_credit_card_number =$array['cardNo'];
$cc_cvv2_number =$array['cvvNo'];
$cc_expiration_month =$array['expMnth'];
$cc_expiration_year =$array['expYr'];
$currencyCodeType ='GBP';
我如何分配在捲曲這個數據?
小[Bobby-Tables](http://bobby-tables.com/)想來玩。 *嘆息* – Quentin 2011-12-22 09:51:37
cURL是一個用於製作HTTP請求的庫。您必須以客戶需要的格式構建HTTP請求。 – Quentin 2011-12-22 09:52:14