Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Phone not including


egutierrez

Recommended Posts

Hi there,

 

I need to include the phone in the orders. I know that I have to use the variable PAYMENTREQUEST_n_SHIPTOPHONENUM in SetExpress Checkout, but, Can I get some help about how add it on the params of this function?

 

 

    $params = array('VERSION' => $this->api_version,

                      'METHOD' => 'SetExpressCheckout',
                      'PAYMENTREQUEST_0_PAYMENTACTION' => ((MODULE_PAYMENT_PAYPAL_EXPRESS_TRANSACTION_METHOD == 'Sale') || (!tep_not_null(MODULE_PAYMENT_PAYPAL_EXPRESS_API_USERNAME)) ? 'Sale' : 'Authorization'),
                      'RETURNURL' => tep_href_link('ext/modules/payment/paypal/express.php', 'osC_Action=retrieve', 'SSL', true, false),
                      'CANCELURL' => tep_href_link('ext/modules/payment/paypal/express.php', 'osC_Action=cancel', 'SSL', true, false),
                      'BRANDNAME' => STORE_NAME,
                      'SOLUTIONTYPE' => (MODULE_PAYMENT_PAYPAL_EXPRESS_ACCOUNT_OPTIONAL == 'True') ? 'Sole' : 'Mark');
Link to comment
Share on other sites

Hi there

 

I'm guessing that this is not possible in that function - do you want it in the later one at line 621 function doExpressCheckoutPayment($parameters) ???

 

If so then try this - go up to the before_process() function and add the lines as shown after  $params['PAYMENTREQUEST_0_SHIPTOZIP'] = $order->delivery['postcode']; on or about line 232

                $params['PAYMENTREQUEST_0_SHIPTOZIP'] = $order->delivery['postcode'];
		//phone
		$params['PAYMENTREQUEST_0_SHIPTOPHONENUM'] = $order->customer['telephone'];// changed your _n_ to _0_
		//end
Link to comment
Share on other sites

Thank you. I tried it, but didn't work.

 

someone from the techical department of PayPal told me about use the variable PAYMENTREQUEST_n_SHIPTOPHONENUM in SetExpress Checkout,

 

Don't you think it could work. The problem is that I don't know how to add it exactly, I mean, what value I have to assign it?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...