How to change status in onPaymentNotification

  • Posts: 13
  • Thank you received: 5
12 years 1 month ago #66601

Hi everyone,

I'm trying change order status and add info to history

$order->order_status = $element->payment_params->verified_status;

and nothing :blink:

Last edit: 12 years 1 month ago by DannyM.

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

  • Posts: 13201
  • Thank you received: 2322
12 years 1 month ago #66619

Hi DannyM,

Are you sure that the statuses are set in your plugin configuration ?

What is the value of "$element->payment_params->verified_status" ?

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

  • Posts: 13
  • Thank you received: 5
12 years 1 month ago #66628

From DB: s:14:"invalid_status";s:9:"cancelled";s:14:"pending_status";s:7:"created";s:15:"verified_status";s:9:"confirmed";s:4:

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

  • Posts: 82818
  • Thank you received: 13362
  • MODERATOR
12 years 1 month ago #66815

That is ok.

Aren't you missing the rest of the code ?
The function should be in the plugin class along with other functions.
Are you sure that the notification function is ever called ?

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

  • Posts: 13
  • Thank you received: 5
12 years 1 month ago #66868

I recoded and now it works well
Thank you

Do you now how to add my language for this payment plugin?

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

  • Posts: 82818
  • Thank you received: 13362
  • MODERATOR
12 years 1 month ago #66871

It depends.
If you want to redistribute the plugin yourself you can use standard joomla translation files for plugins:
docs.joomla.org/Specification_of_language_files
docs.joomla.org/Creating_a_search_plugin

If you want us to include it in a future version of HikaShop so that we can continue the maintenance on the plugin, you can just give us the plugin and the INI translation lines ( same format as in the HikaShop translation file) and we will include them.

The following user(s) said Thank You: DannyM

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

Time to create page: 0.069 seconds
Powered by Kunena Forum