SOFORT payment (order id missing)

  • Posts: 11
  • Thank you received: 0
9 years 4 months ago #206875

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.6.10
-- Browser(s) name and version -- : all
-- Error-message(debug-mod must be tuned on) -- : reference (order id) not shown

Hello,

my customer is using SOFORT payment and nearly everything seems to work fine (still in test mode), but at the checkout page where you enter your banking information no order id is displayed (see screenshot).



How can I manage that the corresponding order id will be shown?

Best Regards
Sabine

Attachments:

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

  • Posts: 12953
  • Thank you received: 1778
9 years 4 months ago #206894

Hello Sabine,
The solution will probably be to directly edit the "plugins\hikashoppayment\sofort\sofort.php" file and add that line :

		$Sofort->setSofortrechnungOrderId($order->order_id);
Just after that line :
		$Sofort->addUserVariable($order->order_id);
Can you test it and then tell me if that did the job ?

Thanks.

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

  • Posts: 11
  • Thank you received: 0
9 years 4 months ago #207174

Hi,

this does not solve the problem.

But when I replace:
$order_text = "\r\n".JText::sprintf('betaling Feeen en ridders: order ',$order->order_id);

with:
$order_text = "\r\n Ihre Bestell-Nr. ".($order->order_id);

it is working :)

Another (last) problem with SOFORT is, that just after reaching the page where you have to enter your banking information the order is already shown in the backend. Regardless if you click on "CANCEL TRANSACTION".

This is really a problem!

Backend:



Any hint?

Thank you and Best Regards
Sabine

Attachments:
Last edit: 9 years 4 months ago by Babylon5. Reason: spelling

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

  • Posts: 12953
  • Thank you received: 1778
9 years 4 months ago #207233

Hello Sabine,
Thanks for your feedback.

Another (last) problem with SOFORT is, that just after reaching the page where you have to enter your banking information the order is already shown in the backend. Regardless if you click on "CANCEL TRANSACTION".

Note that starting the moment you've been redirected to the SOFORT payment platform, your order will be created with the status CREATED, and THEN if you successfully paid through the SOFORT payment platform your order will be updated to the confirmation status.

The following user(s) said Thank You: Babylon5

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

  • Posts: 11
  • Thank you received: 0
9 years 4 months ago #207285

Hi Mohamed,

thank you for your quick answer.

Does this mean, that although if a buyer canceled the transaction the order will be shown as created in the backend and that my customer has to delete the order manually if not payment is received?

If so, this is not very satisfying....

Best Regards
Sabine

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
9 years 4 months ago #207308

Hi,

Not at all.
An order has to be created before the redirection to the payment gateway.
Then, when the payment is done on the payment gateway, the status of the order is changed to confirmed.
So you should only take into account confirmed orders.
If the buyer click on cancel on the payment gateway, the order status will be changed from "created" to "cancelled" and the user will then be back on the checkout (to select another payment method for example).
Also, you can activate the "auto cancel orders plugin" to automatically cancel created orders after a certain period of time.
To conclude, there is no need to delete orders (and that should actually not be done in many countries where you're supposed to keep a record of an order even if not paid by the customer, and you're not supposed to have holes in the numbering of the orders) since you already have a mean to distinguish between created, cancelled and confirmed orders.

The following user(s) said Thank You: Babylon5

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

  • Posts: 11
  • Thank you received: 0
9 years 4 months ago #207363

Hi,

okay, this would be fine.

Maybe it does not work yet (change status to "cancelled") as the SOFORT payment is still in test mode and not activated yet.

Thank you very much for your efforts. The support you are offering for hikashop is really superb!!!

Best Regards
Sabine

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

  • Posts: 11
  • Thank you received: 0
9 years 4 months ago #207691

Hi,

sorry, but I have to come back for some help.

If the buyer clicks on cancel on the payment gateway, the order status will not be changed from "created" to "cancelled" and the buyer receives an email, that the order has been placed (although he cancelled the transaction)!

This is really worst case as the buyer believes that his cancellation was not recognized.

Any hint?

Best Regards
Sabine

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
9 years 4 months ago #207797

Hi,

The email the user receives is sent when the order is created before sending him to the payment gateway.
And if you read the email, it tells him that he has to pay in order to confirm the order.
Nevertheless, if you don't want that email to be sent, you can simply deactivate it via the menu System>Emails. It is called "order creation notification".

For the order cancellation, it should happen automatically but only if you didn't enter anything in the "cancel URL" field of the payment method. If you did, Sofort will redirect the customer on your URL instead of the order cancellation URL of HikaShop and thus the order won't be cancelled.

The following user(s) said Thank You: Babylon5

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

  • Posts: 11
  • Thank you received: 0
9 years 4 months ago #207813

Hi,

seems I walked into a trap...

Great, it is working now!

Once again, your support ist friendly, professional and really helpful......GREAT

Thank you and have a nice day....
Sabine

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

Time to create page: 0.101 seconds
Powered by Kunena Forum