Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Passing Customer Phone Number To Sage Pay


Recommended Posts

Posted

Anyone know how to do this?

 

Name, Address, email address are all passed as default, but Customer Phone Number is not...

 

Is it just as simple as changing:

      $plain = "VendorTxCode=" . MODULE_PAYMENT_PROTX_FORM_VENDOR_NAME . date('YmdHis') . $customer_id . "&";
     $plain .= "Amount=" . number_format($order->info['total'] * $currencies->get_value($protx_currency), $currencies->get_decimal_places($protx_currency), '.', '') . "&";
     $plain .= "Currency=" . $protx_currency . "&";
  $plain .= "Description=" . "Goods bought from " . STORE_NAME . "&";
     $plain .= "SuccessURL=" . tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL', true) . "&";
     $plain .= "FailureURL=" . tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL', true) . "&";
     $plain .= "CustomerName=" . $order->billing['firstname'] . ' ' . $order->billing['lastname'] . "&";
     $plain .= "CustomerEmail=" . $order->customer['email_address'] . "&";
     $plain .= "VendorEMail=" . STORE_OWNER_EMAIL_ADDRESS . "&";

 

to

 

      $plain = "VendorTxCode=" . MODULE_PAYMENT_PROTX_FORM_VENDOR_NAME . date('YmdHis') . $customer_id . "&";
     $plain .= "Amount=" . number_format($order->info['total'] * $currencies->get_value($protx_currency), $currencies->get_decimal_places($protx_currency), '.', '') . "&";
     $plain .= "Currency=" . $protx_currency . "&";
  $plain .= "Description=" . "Goods bought from " . STORE_NAME . "&";
     $plain .= "SuccessURL=" . tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL', true) . "&";
     $plain .= "FailureURL=" . tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL', true) . "&";
     $plain .= "CustomerName=" . $order->billing['firstname'] . ' ' . $order->billing['lastname'] . "&";
     $plain .= "CustomerEmail=" . $order->customer['email_address'] . "&";
     $plain .= "CustomerPhone=" . $order->customer['telephone'] . "&";
     $plain .= "VendorEMail=" . STORE_OWNER_EMAIL_ADDRESS . "&";

 

?

 

(It would be handy if there was some mention of this on the SagePay web site....)

 

Thanks in advance.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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...