PayPal PayFlow API Error
<p>We are using PayFlow PayPal API for recurring payments, it gives us an issue. </p>

<p>We are sending amount $29 to the API but on PayPal log it is showing $1 only. When we asked PayPal support for this they said you are sending $1. </p>

<p>Please help us. Below is the code we have setup:</p>

<pre><code>&lt;?php

$payflow_partner    =   'PayPal';
$payflow_vender     =   'xxxxxxxxxxxxx';
$payflow_user       =   'xxxxxxxxxxxx';
$payflow_pwd        =   'XXXXXXXXX';
$payflow_url        =   'https://pilot-payflowpro.paypal.com';

$first_name     =   'First Name';
$last_name      =   'Last Name';
$profile_name   =   $first_name.$last_name;
$plan_amount    =   29.00;
$card_number    =   '4111111111111111';
$expiry_month   =   '05';
$expiry_year    =   '21';
$expiry         =   $expiry_month.$expiry_year; 
$user_email     =   'test@example.com';
$start_date     =   '01202017';                 

$post_list  =   'TRXTYPE=R&amp;TENDER=C&amp;PARTNER='.$payflow_partner.'&amp;VENDOR='.$payflow_vender.'&amp;USER='.$payflow_user.'&amp;PWD='.$payflow_pwd.'&amp;ACTION=A&amp;PROFILENAME='.$profile_name.'&amp;AMT='.$plan_amount.'&amp;CURRENCY=USD&amp;ACCT='.$card_number.'&amp;EXPDATE='.$expiry.'&amp;START='.$start_date.'&amp;PAYPERIOD=MONT&amp;TERM=0&amp;EMAIL='.$user_email.'&amp;OPTIONALTRX=A&amp;OPTIONALTRXAMT='.$plan_amount.'&amp;COMMENT1=First-time-customer&amp;STREET=sector-7-malviya-nagar&amp;ZIP=302017&amp;CITY=jaipur&amp;STATE=rajasthan&amp;COUNTRY=india&amp;FIRSTNAME='.$first_name.'&amp;MIDDLENAME='.$last_name.'&amp;LASTNAME='.$last_name;

$headers = array();  
$headers[] = "Content-Type: text/namevalue"; //or maybe text/xml
$headers[] = "X-VPS-Timeout: 3000";
$headers[] = "X-VPS-VIT-OS-Name: Linux";  // Name of your OS
$headers[] = "X-VPS-VIT-OS-Version: RHEL 4";  // OS Version
$headers[] = "X-VPS-VIT-Client-Type: PHP/cURL";  // What you are using
$headers[] = "X-VPS-VIT-Client-Version: 0.01";  // For your info
$headers[] = "X-VPS-VIT-Client-Architecture: x86";  // For your info
$headers[] = "X-VPS-VIT-Client-Certification-Id:13fda2433fc2123d8b191d2d011b7fdc";
$headers[] = "X-VPS-VIT-Integration-Product: MyApplication";  // For your info, would populate with application name
$headers[] = "X-VPS-VIT-Integration-Version: 0.01"; // Application version

$ch = curl_init(); 
curl_setopt($ch, CURLOPT_URL, $payflow_url);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_HEADER, 1); // tells curl to include headers in response
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // return into a variable
curl_setopt($ch, CURLOPT_TIMEOUT, 45); // times out after 45 secs
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); // this line makes it work under https
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_list); //adding POST data
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,  2); //verifies ssl certificate
curl_setopt($ch, CURLOPT_FORBID_REUSE, TRUE); //forces closure of connection when done 
curl_setopt($ch, CURLOPT_POST, 1); //data sent as POST 
$result = curl_exec($ch);
$headers = curl_getinfo($ch);
curl_close($ch);

echo $result;
</code></pre>