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

#   Strange payment cancellation message from Stripe

##

- **[lacasetta](/forum/user/5505-lacasetta "View lacasetta's Profile")**
- [![lacasetta's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar5505.jpg)](/forum/user/5505-lacasetta "View lacasetta's Profile") Topic Author
- [ Offline](/forum/user/5505-lacasetta)

Less More

- Posts: 719
- Thank you received: 3
-
-
-
- [](http://www.lacasettabio.it)
-

9 years 7 months ago -  9 years 7 months ago [\#266808](#266808) by [lacasetta](/forum/user/5505-lacasetta "View lacasetta's Profile")  *[Strange payment cancellation message from Stripe](/forum/29-payment-methods/889702-strange-payment-cancellation-message-from-stripe#266808 "Hi, it was from yesterday that from my Hikashop site i receveid a notification email about an order that has its payment cancelled on Stripe. From yesterday I've received 3 emails always the same email for the same order. It is an old order completed succesfully. On my Hikashop backend, now, the order is cancelled by the notifications that my site receives. I've just contacted Stripe and they tell me that on error log they have an error:  They said me to contact Hikashop because from their end it is OK. Could you help me please? Thanks a lot My best regards")* was created by *[lacasetta](/forum/user/5505-lacasetta "View lacasetta's Profile")*

Hi,
it was from yesterday that from my Hikashop site i receveid a notification email about an order that has its payment cancelled on Stripe.
From yesterday I've received 3 emails always the same email for the same order.
It is an old order completed succesfully.
On my Hikashop backend, now, the order is cancelled by the notifications that my site receives.
I've just contacted Stripe and they tell me that on error log they have an error: Code:

Parsed Request POST Body { "amount": "2620", "currency": "EUR", "description": "Ordine numero : 1785" } Response body { "error": { "type": "invalid_request_error", "message": "Must provide source or customer." } }

They said me to contact Hikashop because from their end it is OK.
Could you help me please?
Thanks a lot
My best regards

---

my site with Hikashop
[ www.lacasettabio.it](http://www.lacasettabio.it)

Last edit: 9 years 7 months ago by [lacasetta](/forum/user/5505-lacasetta "View lacasetta's Profile").

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

- **[Philip](/forum/user/34318-philip "View Philip's Profile")**
- [![Philip's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34318-philip "View Philip's Profile")
- [ Offline](/forum/user/34318-philip)

Less More

- Posts: 4820
- Thank you received: 652
-
-

9 years 7 months ago -  9 years 7 months ago [\#266843](#266843) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Strange payment cancellation message from Stripe](/forum/29-payment-methods/889702-strange-payment-cancellation-message-from-stripe#266843 "Hi, it was from yesterday that from my Hikashop site i receveid a notification email about an order that has its payment cancelled on Stripe. From yesterday I've received 3 emails always the same email for the same order. It is an old order completed succesfully. On my Hikashop backend, now, the order is cancelled by the notifications that my site receives. I've just contacted Stripe and they tell me that on error log they have an error:  They said me to contact Hikashop because from their end it is OK. Could you help me please? Thanks a lot My best regards")*

Hello,

I'm not sure to know how you get this error, but maybe one of your customer keep his **pay order email**, and click on the "**pay now**" link ?... For an **already payed order** ? As result stripe can't generate (again) a **token** for a payed order, and so HikaShop can't post a response **WITH** this token.
It's just a guess from what we know...

To avoid this you can edit your **stripe.php**, around line **128**, you have this :
Code:

... $this-&gt;loadPaymentParams($dbOrder); if(empty($this-&gt;payment_params)) { echo 'The system can\'t load the payment params'; return false; } $this-&gt;loadOrderData($dbOrder); $return_url...

Replace it for this :
Code:

... $this-&gt;loadPaymentParams($dbOrder); if(empty($this-&gt;payment_params)) { echo 'The system can\'t load the payment params'; return false; } if (!isset($_POST['stripeToken'])) { echo 'Token is missing, possible to finish this order'; return false; } $this-&gt;loadOrderData($dbOrder); $return_url...

That will avoid this kind of error in the futur, and keep your Confirmed (or Shipped) order status.
Hope this will fit your needs.

Regards

Last edit: 9 years 7 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

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

- **[lacasetta](/forum/user/5505-lacasetta "View lacasetta's Profile")**
- [![lacasetta's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar5505.jpg)](/forum/user/5505-lacasetta "View lacasetta's Profile") Topic Author
- [ Offline](/forum/user/5505-lacasetta)

Less More

- Posts: 719
- Thank you received: 3
-
-
-
- [](http://www.lacasettabio.it)
-

9 years 7 months ago [\#266897](#266897) by [lacasetta](/forum/user/5505-lacasetta "View lacasetta's Profile")  Replied by *[lacasetta](/forum/user/5505-lacasetta "View lacasetta's Profile")* on topic *[Strange payment cancellation message from Stripe](/forum/29-payment-methods/889702-strange-payment-cancellation-message-from-stripe#266897 "Hi, it was from yesterday that from my Hikashop site i receveid a notification email about an order that has its payment cancelled on Stripe. From yesterday I've received 3 emails always the same email for the same order. It is an old order completed succesfully. On my Hikashop backend, now, the order is cancelled by the notifications that my site receives. I've just contacted Stripe and they tell me that on error log they have an error:  They said me to contact Hikashop because from their end it is OK. Could you help me please? Thanks a lot My best regards")*

Hi,
thanks for your help.
After that, when I add a product on my cart i have This error:
0

syntax error, unexpected 'defined' (T_STRING)

So, I can't apply your patch.
Could you help me more, please?
Thanks a lot
My best regards
Antonio

---

my site with Hikashop
[ www.lacasettabio.it](http://www.lacasettabio.it)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84ODk3MDItc3RyYW5nZS1wYXltZW50LWNhbmNlbGxhdGlvbi1tZXNzYWdlLWZyb20tc3RyaXBlP3RtcGw9bWFya2Rvd24=) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

9 years 7 months ago [\#266922](#266922) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Strange payment cancellation message from Stripe](/forum/29-payment-methods/889702-strange-payment-cancellation-message-from-stripe#266922 "Hi, it was from yesterday that from my Hikashop site i receveid a notification email about an order that has its payment cancelled on Stripe. From yesterday I've received 3 emails always the same email for the same order. It is an old order completed succesfully. On my Hikashop backend, now, the order is cancelled by the notifications that my site receives. I've just contacted Stripe and they tell me that on error log they have an error:  They said me to contact Hikashop because from their end it is OK. Could you help me please? Thanks a lot My best regards")*

Hi,

This modification cannot create that error.
So either you didn't do it correctly, or the error comes from something else.
Also, you shoudl turn on the debug mode and error reporting in order to get the full error message because with the reduced version like you provided, we can't even say if it's one or the other.

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

- **[lacasetta](/forum/user/5505-lacasetta "View lacasetta's Profile")**
- [![lacasetta's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar5505.jpg)](/forum/user/5505-lacasetta "View lacasetta's Profile") Topic Author
- [ Offline](/forum/user/5505-lacasetta)

Less More

- Posts: 719
- Thank you received: 3
-
-
-
- [](http://www.lacasettabio.it)
-

9 years 7 months ago [\#266979](#266979) by [lacasetta](/forum/user/5505-lacasetta "View lacasetta's Profile")  Replied by *[lacasetta](/forum/user/5505-lacasetta "View lacasetta's Profile")* on topic *[Strange payment cancellation message from Stripe](/forum/29-payment-methods/889702-strange-payment-cancellation-message-from-stripe#266979 "Hi, it was from yesterday that from my Hikashop site i receveid a notification email about an order that has its payment cancelled on Stripe. From yesterday I've received 3 emails always the same email for the same order. It is an old order completed succesfully. On my Hikashop backend, now, the order is cancelled by the notifications that my site receives. I've just contacted Stripe and they tell me that on error log they have an error:  They said me to contact Hikashop because from their end it is OK. Could you help me please? Thanks a lot My best regards")*

I'm sorry, your right, excuse me!
It was a cache issue.
After I've deleted the site cache the patch works.
Thanks a lot
My best regards
Antonio

---

my site with Hikashop
[ www.lacasettabio.it](http://www.lacasettabio.it)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84ODk3MDItc3RyYW5nZS1wYXltZW50LWNhbmNlbGxhdGlvbi1tZXNzYWdlLWZyb20tc3RyaXBlP3RtcGw9bWFya2Rvd24=) 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.070 seconds

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