Unable to send user-entered data to PayPal along with credit card info I need help. I used this as a guide. When my user fills out and pays for something on my site using a product form the information they supplied in the form (other than their payment) is not being sent to PayPal. So I built this module to send the information using the module I'm supposed to hook into. However, it throws no errors but still sends no data to PayPal.



    if ($payment_method['base'] == 'commerce_paypal_wpp') { 

    $order_wrapper = entity_metadata_wrapper('commerce_order', 
$order);
    $shipping_info = $order_wrapper-&gt;customer_profile_billing-
&gt;commerce_customer_address-&gt;value();

             $nvp += array(
                    'ORGANIZATION' =&gt; $shipping_info['field_organization'],
            'NAME' =&gt; $shipping_info['field_name'],
         );
    }
}


Am I perhaps referencing my user-entered data incorrectly?

Here's how the fields show with dpm($form) [before the user submits the form]:

Name: 

$form['customer_profile_billing']
['commerce_customer_address']['und'][0]'name_block']['name_line']


Organization: 

$form['customer_profile_billing']['field_organization']
From your above code i have seen that dpm($form) showing 2 fields. when you submit your data in form please ensure that your order is created or not. Becuase in your code you are getting customer order details and pass it to the array() (which is empty). Thats why it not going to Paypal website. Please check your custom code.

hook_commerce_paypal_api_request_alter(&amp;$nvp, $order, $payment_method):  What this function will do, it will alter the array before pass this data to paypal website. So you must ensure that array data you are passing to paypal is not empty or you can check the condition for it.