[Skip to main content](#vessel-content)

#   SOFORT payment (order id missing)

##

- **[Babylon5](/forum/user/34887-babylon5 "View Babylon5's Profile")**
- [![Babylon5's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34887-babylon5 "View Babylon5's Profile") Topic Author
- [ Offline](/forum/user/34887-babylon5)

Less More

- Posts: 11
- Thank you received: 0
-
-

11 years 3 months ago [\#206875](#206875) by [Babylon5](/forum/user/34887-babylon5 "View Babylon5's Profile")  *[SOFORT payment (order id missing)](/forum/29-payment-methods/877889-sofort-payment-order-id-missing#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")* was created by *[Babylon5](/forum/user/34887-babylon5 "View Babylon5's Profile")*

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

[ ![screenshot&#95;1954.png](/forum/attachment/25298) ](/forum/attachment/25298 "...nshot&#95;1954.png")

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

Best Regards
Sabine

- [ ![screenshot&#95;1954.png](/forum/attachment/25298) ](/forum/attachment/25298 "...nshot&#95;1954.png") [ ](/forum/attachment/25298?download=1 "...nshot&#95;1954.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84Nzc4ODktc29mb3J0LXBheW1lbnQtb3JkZXItaWQtbWlzc2luZz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

11 years 3 months ago [\#206894](#206894) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[SOFORT payment (order id missing)](/forum/29-payment-methods/877889-sofort-payment-order-id-missing#206894 "-- 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")*

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

$Sofort-&gt;setSofortrechnungOrderId($order-&gt;order_id);

Just after that line : Code:

$Sofort-&gt;addUserVariable($order-&gt;order_id);

Can you test it and then tell me if that did the job ?

Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84Nzc4ODktc29mb3J0LXBheW1lbnQtb3JkZXItaWQtbWlzc2luZz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Babylon5](/forum/user/34887-babylon5 "View Babylon5's Profile")**
- [![Babylon5's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34887-babylon5 "View Babylon5's Profile") Topic Author
- [ Offline](/forum/user/34887-babylon5)

Less More

- Posts: 11
- Thank you received: 0
-
-

11 years 3 months ago -  11 years 3 months ago [\#207174](#207174) by [Babylon5](/forum/user/34887-babylon5 "View Babylon5's Profile")  Replied by *[Babylon5](/forum/user/34887-babylon5 "View Babylon5's Profile")* on topic *[SOFORT payment (order id missing)](/forum/29-payment-methods/877889-sofort-payment-order-id-missing#207174 "-- 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")*

Hi,

this does not solve the problem.

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

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

it is working ![:)](/media/kunena/emoticons/8.png ":)")

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:

[ ![screenshot&#95;1960.png](/forum/attachment/25331) ](/forum/attachment/25331 "...nshot&#95;1960.png")

Any hint?

Thank you and Best Regards
Sabine

- [ ![screenshot&#95;1960.png](/forum/attachment/25331) ](/forum/attachment/25331 "...nshot&#95;1960.png") [ ](/forum/attachment/25331?download=1 "...nshot&#95;1960.png")

Last edit: 11 years 3 months ago by [Babylon5](/forum/user/34887-babylon5 "View Babylon5's Profile"). Reason: spelling

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84Nzc4ODktc29mb3J0LXBheW1lbnQtb3JkZXItaWQtbWlzc2luZz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

11 years 3 months ago [\#207233](#207233) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[SOFORT payment (order id missing)](/forum/29-payment-methods/877889-sofort-payment-order-id-missing#207233 "-- 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")*

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](/forum/user/34887-babylon5 "View Babylon5's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84Nzc4ODktc29mb3J0LXBheW1lbnQtb3JkZXItaWQtbWlzc2luZz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Babylon5](/forum/user/34887-babylon5 "View Babylon5's Profile")**
- [![Babylon5's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34887-babylon5 "View Babylon5's Profile") Topic Author
- [ Offline](/forum/user/34887-babylon5)

Less More

- Posts: 11
- Thank you received: 0
-
-

11 years 3 months ago [\#207285](#207285) by [Babylon5](/forum/user/34887-babylon5 "View Babylon5's Profile")  Replied by *[Babylon5](/forum/user/34887-babylon5 "View Babylon5's Profile")* on topic *[SOFORT payment (order id missing)](/forum/29-payment-methods/877889-sofort-payment-order-id-missing#207285 "-- 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")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84Nzc4ODktc29mb3J0LXBheW1lbnQtb3JkZXItaWQtbWlzc2luZz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

11 years 3 months ago [\#207308](#207308) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[SOFORT payment (order id missing)](/forum/29-payment-methods/877889-sofort-payment-order-id-missing#207308 "-- 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")*

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](/forum/user/34887-babylon5 "View Babylon5's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84Nzc4ODktc29mb3J0LXBheW1lbnQtb3JkZXItaWQtbWlzc2luZz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Babylon5](/forum/user/34887-babylon5 "View Babylon5's Profile")**
- [![Babylon5's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34887-babylon5 "View Babylon5's Profile") Topic Author
- [ Offline](/forum/user/34887-babylon5)

Less More

- Posts: 11
- Thank you received: 0
-
-

11 years 3 months ago [\#207363](#207363) by [Babylon5](/forum/user/34887-babylon5 "View Babylon5's Profile")  Replied by *[Babylon5](/forum/user/34887-babylon5 "View Babylon5's Profile")* on topic *[SOFORT payment (order id missing)](/forum/29-payment-methods/877889-sofort-payment-order-id-missing#207363 "-- 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")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84Nzc4ODktc29mb3J0LXBheW1lbnQtb3JkZXItaWQtbWlzc2luZz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Babylon5](/forum/user/34887-babylon5 "View Babylon5's Profile")**
- [![Babylon5's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34887-babylon5 "View Babylon5's Profile") Topic Author
- [ Offline](/forum/user/34887-babylon5)

Less More

- Posts: 11
- Thank you received: 0
-
-

11 years 3 months ago [\#207691](#207691) by [Babylon5](/forum/user/34887-babylon5 "View Babylon5's Profile")  Replied by *[Babylon5](/forum/user/34887-babylon5 "View Babylon5's Profile")* on topic *[SOFORT payment (cancellation)](/forum/29-payment-methods/877889-sofort-payment-order-id-missing#207691 "-- 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")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84Nzc4ODktc29mb3J0LXBheW1lbnQtb3JkZXItaWQtbWlzc2luZz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

11 years 3 months ago [\#207797](#207797) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[SOFORT payment (cancellation)](/forum/29-payment-methods/877889-sofort-payment-order-id-missing#207797 "-- 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")*

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&gt;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](/forum/user/34887-babylon5 "View Babylon5's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84Nzc4ODktc29mb3J0LXBheW1lbnQtb3JkZXItaWQtbWlzc2luZz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Babylon5](/forum/user/34887-babylon5 "View Babylon5's Profile")**
- [![Babylon5's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34887-babylon5 "View Babylon5's Profile") Topic Author
- [ Offline](/forum/user/34887-babylon5)

Less More

- Posts: 11
- Thank you received: 0
-
-

11 years 3 months ago [\#207813](#207813) by [Babylon5](/forum/user/34887-babylon5 "View Babylon5's Profile")  Replied by *[Babylon5](/forum/user/34887-babylon5 "View Babylon5's Profile")* on topic *[SOFORT payment (cancellation)](/forum/29-payment-methods/877889-sofort-payment-order-id-missing#207813 "-- 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")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84Nzc4ODktc29mb3J0LXBheW1lbnQtb3JkZXItaWQtbWlzc2luZz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.343 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
