Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Paypal Website Payment Error


aftabn10

Recommended Posts

i have tested my website to see if everything works ok with paypal. the problem i seem to be having is that, when clicking on Confirm Order (tested to make sure it goes to paypal site), and then returning back to my website without making a PAYMENT, I get an order in my ADMIN with preparing (paypal standard) as the status.

 

Can somebody help to clarify why this is? in my paypal settings in admin i have got the following:

 

Enable PayPal Website Payments Standard

True

E-Mail Address

[email protected]

Set Preparing Order Status

Preparing [PayPal Standard]

Set PayPal Acknowledged Order Status

Processing

Gateway Server

Live

Transaction Method

Sale

Page Style

PayPal

Debug E-Mail Address

[email protected]

 

Thanks in advance.

Link to comment
Share on other sites

Enable PayPal Website Payments Standard

better of to disable this script and install better one like PayPal IPN.

Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here!

8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself.

Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues.

Any issues with oscommerce, I am here to help you.

Link to comment
Share on other sites

In "includes/modules/payment/paypal_standard.php" :

 

function process_button() {
  global $customer_id, $order, $sendto, $currency, $cart_PayPal_Standard_ID, $shipping;

  $process_button_string = '';
  $parameters = array('cmd' => '_xclick',
					  'item_name' => STORE_NAME,
					  'shipping' => $this->format_raw($order->info['shipping_cost']),
					  'tax' => $this->format_raw($order->info['tax']),
					  'business' => MODULE_PAYMENT_PAYPAL_STANDARD_ID,
					  'amount' => $this->format_raw($order->info['total'] - $order->info['shipping_cost'] - $order->info['tax']),
					  'currency_code' => $currency,
					  'invoice' => substr($cart_PayPal_Standard_ID, strpos($cart_PayPal_Standard_ID, '-')+1),
					  'custom' => $customer_id,
					  'no_note' => '1',
					  'notify_url' => tep_href_link('ext/modules/payment/paypal/standard_ipn.php', '', 'SSL', false, false),
					  'return' => tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL'),
					  'cancel_return' => tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'),
					  'bn' => 'osCommerce22_Default_ST',
					  'paymentaction' => ((MODULE_PAYMENT_PAYPAL_STANDARD_TRANSACTION_METHOD == 'Sale') ? 'sale' : 'authorization'));

 

Is it possible to use Paypal IPN for Website Payments Standard orders? We want to use Payments Standard at first because it is low cost, and does not require the customer to have a Paypal Account.

 

I'm not terribly concerned with the item name showing our store, as the customer will receive order notification from oscommerce as well, with detailed order info. But it would be nice for the paypal invoice to also reflect the same detail.

Edited by o_cnick
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...