Payment / Registration Issues

  • Posts: 120
  • Thank you received: 14
  • Hikashop Business
1 month 2 weeks ago #363248

-- HikaShop version -- : HikaShop Business 5.1.0 [2409092319]
-- Joomla version -- : 4.4.8
-- PHP version -- : 8.2.23

Unsure as to whether this is a a Shop issue or a Payment Gateway / Square issue
I've called them and all is correct at their end and what I've entered in the Shop system

Payment Gateway: Square

How the process is happening

Place item in cart
View cart
Complete details for payment and registration
Click submit
Page reloads .... checkout/activate_page?lang=en ... this is blank
Email Received: click on link
Takes me to login page
Administrator view: account is enabled and activated
Login Page: Enter user/pass ... nothing happens.
Administrator view: No order has been placed

Here's the Checkout Workflow



Expected - but not happening

Place item in cart
View cart
Complete details for payment and registration
Click submit
Page reloads to make payment
Upon payment > success page Provides instructions to check email to complete registration


Can't update as per this thread.
www.hikashop.com/forum/install-update/90...-failure.html#363247

Attachments:
Last edit: 4 weeks 1 day ago by yerg55. Reason: Resolved

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

  • Posts: 82683
  • Thank you received: 13337
  • MODERATOR
1 month 2 weeks ago #363252

Hi,

I think its neither. This is a Joomla issue.
Based on what you expect, you want to turn off the "New User Account Activation" setting of the Joomla user manager options page:
docs.joomla.org/Allowing_user_registration
Joomla doesn't offer the capability to postpone the activation of the user account.
One alternative would be to configure HikaShop in guest mode instead of registration mode under the Checkout tab of the HikaShop configuration, and turn on the "Allow registration after guest checkout" setting:
www.hikashop.com/support/documentation/5....html#checkout_login
This way, the users would be able to checkout as guests, and after the payment, the notification email would contain a link for them to register. In that case, you could set the "New User Account Activation" setting to "self".

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

  • Posts: 120
  • Thank you received: 14
  • Hikashop Business
1 month 2 weeks ago #363256

Ok that's absolutely understandable but also adds to my confusion

Context Challenge
We have a gluten free flour blending and packaging business
Our site is to have physical products (flour) that are packaged and sent by post.
We are to have videos and recipes which are to be available to registered users who have paid for them.

I'm using {hkshow bought="109"}specific videos and recipes{/hkshow} as part of the payment registration process in relation to people accessing this content post registration, which is why the registration is required. Otherwise we don't require any registration.

Appears yet another day of testing gonna happen as well as discussions with Square to get this happening.

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

  • Posts: 4715
  • Thank you received: 639
  • MODERATOR
1 month 2 weeks ago #363262

Hello,

I have a question to better understand your needs. Why do you require the registration to be completed at the end of the checkout process, and specifically after the payment?

This seems to be where the difficulty lies, as the delayed validation after registration AND payment appears to be causing your issues.

Why not follow a process like this:
1. Place item in cart
2. View cart
3. Instructions to check email to complete registration
4. Complete details for payment
5. Click submit
6. The page reloads to proceed with payment
7. After payment => success page

Last edit: 1 month 2 weeks ago by Philip.

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

  • Posts: 120
  • Thank you received: 14
  • Hikashop Business
1 month 2 weeks ago #363280

Philip
The challenge we faced, with customer testing, was going through the process of purchase and then leaving the web site to check the email and click that link and then going back to complete, cart abandonment

Cart abandonment is of real concern to us due to this complexity as our testers raised this as a concern

Nicolas
Thinking the "Guest Mode" with "Allow registration after guest checkout" process with the payment success email setting out details regarding registration may be the way to go.


All of this raises the question that's been challenging me for some time in this process .... what happens to the use of HikaShop Tags {hkshow bought="109"}content{/hkshow} in the purchase process and only allowing those who have paid to access the videos/recipes gaining access to them?

I'm assuming that people who haven't paid for the videos/recipes, then clicking the email link, registering however won't then gain access?
My prompt .... I was in that position last week having paid for a single eBook and at checkout I was given additional options to purchase additional eBooks which I didn't take up. I get the link to download my book and I was given access to 15 books I'd not paid for :woohoo:

More testing needs to happen today.

Thanks as always

Last edit: 1 month 2 weeks ago by yerg55. Reason: clarity

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

  • Posts: 82683
  • Thank you received: 13337
  • MODERATOR
1 month 1 week ago #363286

Hi,

If you allow for guest checkout, people who purchase as guest won't be able to see the content of hkshow tags. It relies on the current user to check its orders and see if he can access the content or not. Without knowing who the current user is, then it will consider as not being the same user.

So if you're planning on using hkshow, you want to use the normal registration. However, turning off the "New User Account Activation" setting of the Joomla user manager options page, as I was mentioning in my previous message will allow you to have a more streamlined checkout experience as the user will be able to directly proceed to the payment after the registration, without the email step.

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

  • Posts: 120
  • Thank you received: 14
  • Hikashop Business
1 month 1 week ago #363293

I've got the system working, including the Square Sandbox.

Paid for physical product (not the videos/files) and went and registered following the email response.

Logged in and I can see what I didn't pay for.

So how to only allow access to those who purchased the product seeing the virtual stuff?

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

  • Posts: 82683
  • Thank you received: 13337
  • MODERATOR
1 month 1 week ago #363295

Could it be that you have other orders already linked to the user for these other products you can see ?

What tags did you use ?

Also, I can see that you're using HikaShop 5.1.0 as per your first message here.
However, the 5.1.1 contains fixes for the hkshow tag:

When the "bought" attribute of a hkshow or hkhide tag would be used, the plugin would only take into account products with 2 sales and more, instead of 1 sale and more.
It is now possible to use the ID of the product in the "bought" attribute of the hkshow and hkhide content tags.

www.hikashop.com/support/documentation/5...ashop-changelog.html
Both fixes will help so make sure you've updated to the 5.1.1

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

  • Posts: 120
  • Thank you received: 14
  • Hikashop Business
1 month 1 week ago #363311

Could it be that you have other orders already linked to the user for these other products you can see ?


No orders received from that customer/id

What tags did you use ?

{hkshow bought="20"}
<video src="images/videos/Lemon Muffins.mp4" width="1920" height="1080" controls="controls"></video>
{/hkshow}

Also, I can see that you're using HikaShop 5.1.0 as per your first message here.

Haven't updated the OP
I was having update issues which you resolved here
I have updated since

What's now happening

1. Customer places an order for the virtual item which is tagged as above when I login

Upon return customer doesn't get sent to the success page but a blank page with the following URL
/index.php?option=com_hikashop&ctrl=checkout&task=after_end&order_id=2&lang=en&Itemid=250
The "Success" page has been entered correctly
The Customers order and payment has been logged as it should.
Customer can go to the login page and access.

2. A different Customer, never been before, places an order for a physical product completes all the required details, clicks finish and the page refreshes to ensure billing and delivery addresses are ok and clicks finish again.
Page refreshes.

Nothing more happens on the Customers order page
HikaShop Admin:
* No record of any order in the shop for the user
* The Customers admin shows an email but no name details.

Now i am konfused

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

  • Posts: 82683
  • Thank you received: 13337
  • MODERATOR
1 month 1 week ago #363314

Hi,

1. The URL /index.php?option=com_hikashop&ctrl=checkout&task=after_end&order_id=2&lang=en&Itemid=250 is the URL of the default success page of HikaShop.
It should contain the default thank you message. If you don't see it, it means that your template must not be displaying system messages or has some override to change this in a wrong way. Check what you have with the default template of Joomla.
Also, if the page is completely blank, it could indicate a fatal error. In that case, activate the "debug" setting of the Joomla configuration and try again. You should then get an error message on that blank page.

2. It could be that something is wrong with the state of the checkout. For example, if the current cart requires shipping, but that there are no shipping methods available, HikaShop displays an error message and cancels the creation of the order.
Now, as I explained in point 1, it's possible that your template is not displaying system messages. So try with the default template of Joomla and if this is the problem, then you'll have the error message on the checkout page.
Another possibility is that something cancels the order creation without providing any error message, like a plugin.
Could you provide precise instructions to reproduce the issue on your website ?

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

  • Posts: 120
  • Thank you received: 14
  • Hikashop Business
1 month 1 week ago #363459

1. The URL /index.php?option=com_hikashop&ctrl=checkout&task=after_end&order_id=2&lang=en&Itemid=250 is the URL of the default success page of HikaShop.

Finally discovered that Square requires a SEF url not the default J! generated url which I'd used :S

That now functions brilliantly. :woohoo:

2. It could be that something is wrong with the state of the checkout.


Now this gets weird.
I can order as many of the Digital / No Postage items and the system functions like clockwork.

ALL physical items including postage get to the point of "Next" or "Finish" which should then transfer to the Square system
They stall with a page refresh on ..... checkout/task-show/cid-1
If the user is registered and is approved etc it makes no difference.

The AusPost module (Hikashop Australia Post eDeliver Shipping Plugin V2) settings are the same as other installs that function just fine.

This may be a distraction .... enabling debug throws the following

Deprecated: Use of "self" in callables is deprecated in /public_html/domain.com.au/2023/libraries/vendor/phpseclib/bcmath_compat/src/BCMath.php on line 492

$arguments = array_merge($numbers, $ints, [$scale, $pad]);
        return call_user_func_array('self::' . $name, $arguments);

Thanks :blush:

Last edit: 1 month 1 week ago by yerg55. Reason: Spelling

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

  • Posts: 82683
  • Thank you received: 13337
  • MODERATOR
1 month 6 days ago #363466

Hi,

Could you provide precise instructions to reproduce the issue on your website ? Maybe we can figure out something by directly reproducing the problem and analyzing what is going on while doing it.

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

  • Posts: 120
  • Thank you received: 14
  • Hikashop Business
1 month 5 days ago #363498

Can do that

Having said that would it be easier if I gave you a "private" link to test?
The site is in a sub domain.

I'll do the first with all the screen shots to progress this for starters

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

  • Posts: 4715
  • Thank you received: 639
  • MODERATOR
1 month 5 days ago #363500

Hello,

In order to provide us these elements, you can use our Contact us form, don't forget to add an Url link to this topic to your message.
We are awaiting these elements :
- Url link to your backend (administrator)
- Backend user references (with maximum Acl)
- A step by step process to reproduce precisely your issue

Regards

Last edit: 1 month 5 days ago by Philip.

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

  • Posts: 120
  • Thank you received: 14
  • Hikashop Business
1 month 1 day ago #363548

Email with credentials sent

Thanks

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

  • Posts: 82683
  • Thank you received: 13337
  • MODERATOR
1 month 1 day ago #363576

Hi,

Thanks for the access.
Well, I can see several problems:
- you activated the "read only" setting of the "address" view of your checkout workflow. Because of that, I was not able to enter my address once I logged in.
- you had turn off the error display setting of the "shipping" view of the checkout workflow. Because of that, I was not getting an error message when displaying the page, even though no shipping method was proposed.
- you didn't enter the API key in the Australia Post shipping plugin. When you save the shipping method, it tells you: "Please enter your Australia POST API Key". And with the errors display activated in the shipping view, you get this error "Sorry, you are not authorized to use this service.". So please fill in the API key of the Australia Post shipping method with your Australia post account API key and it will work.

So it is not a Square redirection issue. The Square redirection happens after you see the payment method selection and click on the "finish" button. Here users with shippable goods are stuck on the first step of your checkout, well before the redirection to the payment gateway.

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

  • Posts: 120
  • Thank you received: 14
  • Hikashop Business
1 month 14 minutes ago #363593

Apologies for the confusion as from my perspective I wasn't pointing to Square plugin as the issue.

Haven't used the AustPost API before and things worked ok on other sites so have gained one now

As always you guys rock. :)

Putting up with stuff like this :S

The following user(s) said Thank You: nicolas

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

Time to create page: 0.065 seconds
Powered by Kunena Forum