|
Rank: Starting Member
Groups: Registered
Joined: 1/24/2003 Posts: 1 Location: ,
|
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?
|
|
Rank: Starting Member
Groups: Registered
Joined: 9/16/2002 Posts: 2,960 Location: ,
|
"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.comPatrick Breitenbach PayPal, Inc. Dev Net: https://www.paypal.com/pdn
|