[TEP-COMMIT] [CVS catalog] Update paypal module to send billing details and to use new auto return feature
anonymous-OfajU3CKLf1/[email protected] 28 Mar 2004 18:23:48 -0000
| Newsgroups | gmane.comp.web.oscommerce.cvs |
|---|---|
| Message-ID | <[email protected]> |
Commit in catalog/catalog/includes/modules/payment on MAIN
paypal.php +11 1.41 -> 1.42
Update paypal module to send billing details and to use new auto return feature
----------
catalog /catalog /includes /modules /payment
paypal.php 1.41 -> 1.42
diff -u -r1.41 -r1.42
--- paypal.php 2003/12/18 23:52:15 1.41
+++ paypal.php 2004/03/28 18:23:46 1.42
@@ -87,9 +87,20 @@
tep_draw_hidden_field('business', MODULE_PAYMENT_PAYPAL_ID) .
tep_draw_hidden_field('item_name', STORE_NAME) .
tep_draw_hidden_field('amount', number_format(($order->info['total'] - $order->info['shipping_cost']) * $osC_Currencies->value($my_currency), $osC_Currencies->decimalPlaces($my_currency))) .
+ tep_draw_hidden_field('first_name', $order->billing['firstname']) .
+ tep_draw_hidden_field('last_name', $order->billing['lastname']) .
+ tep_draw_hidden_field('address1', $order->billing['street_address']) .
+ tep_draw_hidden_field('address2', $order->billing['suburb']) .
+ tep_draw_hidden_field('city', $order->billing['city']) .
+ tep_draw_hidden_field('state', $order->billing['state']) .
+ tep_draw_hidden_field('zip', $order->billing['postcode']) .
+ tep_draw_hidden_field('lc', $order->billing['country']['iso_code_2']) .
+ tep_draw_hidden_field('email', $order->customer['email_address']) .
tep_draw_hidden_field('shipping', number_format($order->info['shipping_cost'] * $osC_Currencies->value($my_currency), $osC_Currencies->decimalPlaces($my_currency))) .
tep_draw_hidden_field('currency_code', $my_currency) .
tep_draw_hidden_field('return', tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL')) .
+ tep_draw_hidden_field('rm', '2') .
+ tep_draw_hidden_field('no_note', '1') .
tep_draw_hidden_field('cancel_return', tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
return $process_button_string;
CVSspam 0.2.8
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click