SOFORT & PAYPAL payment plugins do not redirect

  • Posts: 154
  • Thank you received: 4
10 years 9 months ago #164514

-- HikaShop version -- : 2.3.2
-- Joomla version -- : 3.3.0

dear team, i just spent a total of 3 hrs in telephone support with SOFORT and another hour in your forum searching for a hint / solution to my problem:

no matter what URLs i add into the fields "CANCEL URL" & "RETURN URL", after canceling a payment, or succeding, i always get redirected to root and not to the urls i specify...

so far we tried the following:
1. test server of the new page was on a https domain of our server without a connected domain and a password protected directory.
= not working
2. removed the password protection and connected a sub-domain on the account, so that not accesible through https anymore
= not working
3. disabled SEF urls and URL rewriting in joomla and readed the non-SEF urls
= not working

so far we have not used any additional SEF tool, and we havent changed any code in HIKA / JOOMLA / .htaccess...

any idea / help why this is not working?

first i thought this to be a problem of SOFORT, but then i checked PAYPAL and there is the same problem...
so i guess the problem lies either in the HIKA payment modules, or on the server configuration...
maybe because it is a subdomain???

any thought appreciated!

Please Log in or Create an account to join the conversation.

  • Posts: 154
  • Thank you received: 4
10 years 9 months ago #164608

the subdomain is not the problem.
what we found out though, is that as soon as hikashop redirects to SOFORT or PAYPAL payment site, the COOKIE that has been set for HIKASHOP gets immediatelly cleared. i guess this is the reason why the redirection back to step-3 or step-5 does not work. because there is no products in cart anymore...

could that be?
why does this happen?
did we miss something out here?

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
10 years 9 months ago #164613

Hello,
Can tell me through which URL you are redirected after your payment process ? are you redirected through the thank you page ? Can you also tell me if your order status is updated ?
Thanks.

Please Log in or Create an account to join the conversation.

  • Posts: 154
  • Thank you received: 4
10 years 9 months ago #164628

thanks for the quick reply!

i am not sure if i understand your first question:

- we get redirected after canceling the purchase over PAYPAL or SOFORT.
- we used in both cases the following cancel URL: " sub.domain.com/checkout/checkout/task-step/step-3 "
- thank you page? what do you mean? we would like to use redirection to "step-5" if purchase was successful

- "order status updated", you mean in the backend?
there is an order status "created", but after redirect from SOFORT or PAYPAL to the page (because of cancelation), the cart is not visible anymore, because as i mentioned the cookie / session got deleted somehow... = and this is why the redirection does not work i guess, because "http://......../step-3" is not available anymore, because nothing in the cart anymore

PS. we are using a guest-account in "Login & Registration"
Here the Settings:

Login: No
Display Method: All in one page
Registration: Guest
Display email conf.: Yes
Ask address: Yes

Last edit: 10 years 9 months ago by olivnewton.

Please Log in or Create an account to join the conversation.

  • Posts: 83732
  • Thank you received: 13547
  • MODERATOR
10 years 9 months ago #164707

Hi,

I see that you found the solution here:
www.hikashop.com/forum/4-how-to/61472-fo...checkout.html#164650
So I'm closing this thread.

Please Log in or Create an account to join the conversation.

  • Posts: 154
  • Thank you received: 4
10 years 9 months ago #164739

dear nicolas, do you suggest the footerfix also fixes the payment redirect problem? that is weird, because we are parallel working on 2 shops on different websites. one has hika 2.3.1 with no footer error but paypal redirect error and the other hika 2.3.2 with footer error and redirect error...

also i did not encounter any js errors on firebug on both sites...

Last edit: 10 years 9 months ago by olivnewton.

Please Log in or Create an account to join the conversation.

  • Posts: 154
  • Thank you received: 4
10 years 9 months ago #164751

ps. i could just try if the problem got fixed by the footerfix = negative, so what exact did you mean?

Please Log in or Create an account to join the conversation.

  • Posts: 154
  • Thank you received: 4
10 years 9 months ago #164802

FYI: i just enabled "error reporting" = development in joomla backend, and the only errors i got were:

Notice: Use of undefined constant defaultValue - assumed 'defaultValue' in /home/ultraface/public_html/templates/ultrafaceblank/html/com_hikashop/checkout/step.php on line 17
= here i changed

<?php echo $componentParams->get('page_heading', defaultValue); ?>
to
<?php echo $componentParams->get('page_heading'); ?>

Strict Standards: Only variables should be assigned by reference in /home/ultraface/public_html/plugins/hikashoppayment/sofort/sofort_end.php on line 22
= here i changed
$doc =& JFactory::getDocument();
to
$doc = JFactory::getDocument();

errors gone, problem still persists...

PS1.
@nicolas:
all js libraries etc. are loaded, no js errors at all, so i am still confused about:
"I see that you found the solution here:"...
maybe i am missing something? is there any other way of finding errors except using firebug & enabling error reporting?
maybe one can go even more in depth and i dont know how?
could you please explain / give me a hint?

PS2.
could this be related to the session problems on checkout, which have been fixed in 2.3.2 but maybe there is still something buggy?
because as i explained, the cookie which has been set is not present anymore after returning from SOFORT or PAYPAL, thus cart is empty, thus redirection to step-3 or step-5 would obviously not work...

Last edit: 10 years 9 months ago by olivnewton.

Please Log in or Create an account to join the conversation.

  • Posts: 154
  • Thank you received: 4
10 years 9 months ago #164950

PS3.
today i disabled all other plugins and all custom JS (which was not much)...
still the problem persists...!

please help!!!
any idea?

Please Log in or Create an account to join the conversation.

  • Posts: 154
  • Thank you received: 4
10 years 9 months ago #165115

PS4.
today i installed jqueryEasy and retried: problem still there...
then i checked .htaccess: problem still there...

so i started thinking and thinking and trying and searching the forum again and again...
as i turns out, i guess one of my assumptions / thoughts was going the right way, but i never got a reply on this:
see PS2. from 2 days ago:
...after returning from SOFORT or PAYPAL, thus cart is empty, thus redirection to step-3 or step-5 would obviously not work...

i found this thread: www.hikashop.com/forum/2-general-talk-ab...ment-cart-empty.html were nicolas explains that after payment redirection, no matter if cancelled or succeeded, hikashop flushes the cart
= thus, there is no use of me trying to redirect after cancellation to /step-3 (= which is "payment selection"),
or after success to /step-5 (= which i thought was "confirmation" after successful payment)...

FYI: obviously if i enter any other URL in "cancel" URL, it redirects perfectly...

also the following hint from nicolas was very confusing and pointe4d me to a total wrong direction!!!
"I see that you found the solution here:
www.hikashop.com/forum/4-how-to/61472-fo...checkout.html#164650
So I'm closing this thread. "


so, what do you guys suggest should i do for the following setup and scenario:

1. guest login (only)

2. after PAYPAL or SOFORT cancellation, i would like the guest-users to be able to see their cart and redirect again to cart/payment-options (= /step-3)

3. after PAYPAL or SOFORT success, i would like the guest-users to be able to see a confirmations of some kind (ideally a "thank you"-page WITH the data of the transaction and / or a link to a PDF of the invoice and the info that all data + invoice have also been sent per email to This email address is being protected from spambots. You need JavaScript enabled to view it.)

for (2) to happen, i could make the following changes???
$cartClass = hikashop::get('class.cart');
$cartClass->delete($order->cart->cart_id);
in the file administrator/components/com_hikashop/classes/order.php
as nicolas pointed out in thread " www.hikashop.com/forum/2-general-talk-ab...ment-cart-empty.html " and THEN insert the /step-3 link in "cancel url" ?

for (3) i got no clue what to do, as the thank you page should somehow need access to transaction data and AFTER showing those, flush the cart!!! am i right? how do i achieve this?

i am wondering why this is not normal behavour or if i missed something out?
what i am trying to do does make sense to you, doesnt it?
or is it the normal behavior for real logged-in users (not guests) because they CAN still view their cart?
but, on the other hand, then this would be a point to think about, if this feature can be included for guests as well, because it totally lacks usability this way!!! do you understand my point?

Please Log in or Create an account to join the conversation.

  • Posts: 154
  • Thank you received: 4
10 years 9 months ago #165552

friendly bump!?

Please Log in or Create an account to join the conversation.

  • Posts: 154
  • Thank you received: 4
10 years 9 months ago #165776

friendly bump.

dear team, sorry to bother you, but did my problem / thread somehow got forgotten due to the fact that nicolas thought i found a solution and he indicated that he would close it??? please, just a small notice like "we will look into it soon, be patient" or "looking into it" or "no idea, further investigation necessary" would be really appreciated, as i am waiting for this in order to present the project to the client, who has been inpatient lately. for me, i can wait even another 1-2 weeks if necessary, its just that i have to tell the client something! as i mentioned, and as you can tell from my previous posts, i am willing to assist you 100% in order to find a solution and i do not hesitate to try different things / suggestions...

hopefully i hear from you soon!
support so far, on all other issues i had, was perfect and i think this just got overlooked...

Please Log in or Create an account to join the conversation.

  • Posts: 26230
  • Thank you received: 4035
  • MODERATOR
10 years 7 months ago #172296

Hi,

"bump" is not working in our support forum and it have the bad inverse effect.
More you will answer to your own message, more you will wait and more you will put content, more it will be difficult to someone of the support team to answer you.
Sometimes, too much content is not good ; it can be "frightening"..
And today I have the task to answer to unanswered threads, so I am the bad guy who answer quite late. Sorry !

1. I am sorry but we do not have any link to your website to understand, test and see you problem.

2. The warning you got wasn't in HikaShop

Notice: Use of undefined constant defaultValue - assumed 'defaultValue' in /home/ultraface/public_html/templates/ultrafaceblank/html/com_hikashop/checkout/step.php on line 17

As you can see, the file is already a view override, which mean that the problem was in your override.

3. If you have an override for the view "checkout | step", I guess that you could have override for other views. Maybe your javascript problem for the redirection can be link to that.
It can also be a javascript problem with jquery, or mootools, or another plugin.
It can be a lot of things but without any link to your website, we can not see it ; so we can not help you correctly.

And same thing for your message

today i disabled all other plugins and all custom JS (which was not much)...
still the problem persists...!
please help!!!
any idea?

How could we have an idea of something we are not aware of ?

4. About your empty cart, there in an option in HikaShop to specify when the cart should be empty.
With plugins like paypal, when you arrive to the last step, the order is created and generally, the cart is then empty.
But if you said that you want to "clean cart when order is" "confirmed", the cart won't be empty when the order is created.

5. About your thank you page and guest user. It require a view override with some custom PHP code.
You have to check the user account, see if it's a guest or not and display your custom content depending that.

I hope that I did not loose other specific question in your different messages.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 154
  • Thank you received: 4
10 years 6 months ago #177160

i see... i should have read the forum rules then!
thanks anyway, problem did not get solved, we are just using a workaround now.

by the way, what should one do if noone of you has replied to a post for over a week and one does not know if its been looking into it? does PM work / is allowed as a reminder?

thanks!

Please Log in or Create an account to join the conversation.

  • Posts: 83732
  • Thank you received: 13547
  • MODERATOR
10 years 6 months ago #177192

Hi,

Yes, you can use our contact form in that case:
www.hikashop.com/support/contact-us.html

Please Log in or Create an account to join the conversation.

Time to create page: 0.097 seconds
Powered by Kunena Forum