Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Please Please help!


sharplab

Recommended Posts

After weeks of trying to fix this problem and searching forum thread after thread I may have it.

 

When someone pays by PayPal and they try to return to merchant by clicking the button it goes to a shortened up url.

 

I have the return url in PayPal set to:

www.mydomain.com/mystore/checkout_success.php

 

WHAT I GET IS THIS THOUGH:

http://checkout_success.php/?

 

I READ THAT THE FIX IS THE "RM" VALUE.

IT MUST BE SET TO 2

 

Okay so I was told to insert this:

tep_draw_hidden_field('rm', 2)

 

IN THE paypal.php page.

 

QUESTION is..

 

WHERE IN THE WORLD DO I PUT IT?

DO I REMOVE SOMETHING?

PUT IT ANYWHERE?

 

PLEASE PLEASE HELP!

 

THX!

 

Steve

Link to comment
Share on other sites

if you are using the standard osc paypal module then open catalog/includes/modules/payment/paypal.php

 

Look for the section:

function process_button() {

 

Find the line:

tep_draw_hidden_field('return', tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL')) .

 

add:

tep_draw_hidden_field('rm', 2) .

directly beneath it.

 

Tom

Link to comment
Share on other sites

Just tried that but still get this when I hit the "Complete This Transaction Button". This is the button I see after I make a payment. I am using the liver site also not the test sandbox.

 

Here is what I get in the browser:

http://checkout_process.php/

 

and I have the full path entered in the PayPal site.

 

What to do?

Thx so much for the help!

 

Steve

Link to comment
Share on other sites

Just tried that but still get this when I hit the "Complete This Transaction Button".

 

THE BUTTON ACTUALLY SAYS:

 

"Complete Your Order Confirmation"

 

This is the button on the bottom of the page lower right that I see after I make the PayPal payment.

Link to comment
Share on other sites

in the same file you should have the line:

tep_draw_hidden_field('return', tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL')) .

 

this passes the return url.

 

Check that this line exists and is correct.

 

Tom

Link to comment
Share on other sites

in the same file you should have the line:

tep_draw_hidden_field('return', tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL')) .

 

this passes the return url.

 

Check that this line exists and is correct.

 

Tom

 

 

Thanks ! Here is my code for the return string:

 

$process_button_string = tep_draw_hidden_field('cmd', '_xclick') .

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']) * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency))) .

tep_draw_hidden_field('shipping', number_format($order->info['shipping_cost'] * $currencies->get_value($my_currency), $currencies->get_decimal_places($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('cancel_return', tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));

 

Also I DO NOT have SSL enabled yet, could that be the problem?

One other thing:

 

FILENAME_CHECKOUT_PROCESS is set to "checkout_process.php" IN THE:

includes/filenames.php

 

SHOULD I HAVE THE FULL PATH HERE?

Example = http://www.mystore.com/catalog/checkout_process.php

 

??

 

 

THX!

 

Steve

Link to comment
Share on other sites

Also I DO NOT have SSL enabled yet, could that be the problem?

yes that is the problem!!

 

As a quick fix try changing the SSL to NONSSL on the 2 lines this may or may not work. IT's really not worth setting up a site without SSL - people just won't buy anything without it.

 

Tom

Link to comment
Share on other sites

Thanks "PP"

 

YOU ARE A HUGE HELP!

 

We have SSL being set up now! I will wait until the SSL back end is set up. Then I will cross my fingers that that fixes it!

 

THX AGAIN!

 

:-)

 

Steve

Link to comment
Share on other sites

Thanks "PP"

 

YOU ARE A HUGE HELP!

 

We have SSL being set up now! I will wait until the SSL back end is set up. Then I will cross my fingers that that fixes it!

 

THX AGAIN!

 

:-)

 

Steve

 

Steve you may already have ssl in the form of openssl on your server. However, accessing it you would need to have telnet or ssh access to the system. If you do then you may want to consider using the PayPal_IPN contribution and then follow this link and read this thread.

 

http://www.oscommerce.com/forums/index.php?showtopic=166092

 

Guy

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