Jump to content


Photo

OS Commerce paypal code


  • This topic is locked This topic is locked
1 reply to this topic

#1 edward

edward

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 23 January 2003 - 09:53 PM

We need clarification from PayPal:

We use oscommerce with php codes as follows
$paypal_return = urlencode($HTTP_POST_VARS['payment'] . '|' . $HTTP_POST_VARS['sendto']
. '|' . $shipping_cost . '|' . urlencode($shipping_method) . '|' . urlencode($comments)
. '&' . SID);

$checkout_form_action = 'https://secure.paypal.com/xclick/business=' . rawurlencode(PAYPAL_ID)
. '&item_name=' . rawurlencode(STORE_NAME) . '&amount=' . number_format(($total_cost
+ $total_tax),2) . '&shipping=' . number_format($shipping_cost, 2) . '&return=' .
urlencode(HTTP_SERVER . DIR_WS_CATALOG . FILENAME_CHECKOUT_PROCESS . '?paypal_return='
. $paypal_return);

to perform customer payment.
Does PayPal expect the codes?
What should be the stored in the variables?



#2 paypal_pb

paypal_pb

    Advanced Member

  • Members
  • 2,960 posts

Posted 24 January 2003 - 11:10 AM

"https://secure.paypal.com" should be "https://www.paypal.com".

It looks OK otherwise.

If you are comfortable installing a module, I believe the PayPal IPN contribution is more up-to-date.

Also, the OSC forums are good: http://forums.oscommerce.com

Patrick Breitenbach
PayPal, Inc.
Dev Net: https://www.paypal.com/pdn




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users