Message if credit card is wrong

  • Posts: 441
  • Thank you received: 24
11 years 10 months ago #85305

If the credit card is wrong or the client fails to insert the data, the servired plugin returns to the web and just display your basket is empty, how can i manage to get a display message saying your transaccion was denied, try again o something similar. I also choose in the plugin the option that if the payment is incorrect y want to leave it in created, but it automatically change it to cancel.
Another thing is that the messaje sent after correct payment is that

hola,
Un servired aviso se recibió con el estado de Confirmado. El pedido es ahora .

And it says

a Servired message is received with the status Confirm. The order is now.


It should at least say "Se recibió un aviso de confirmación de Servired. El pedido esta ahora Confirmado."
something like "confirmation messaege from servired received. The order is now confirm"

Last edit: 11 years 10 months ago by Jerome.

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

  • Posts: 26152
  • Thank you received: 4027
  • MODERATOR
11 years 10 months ago #85451

Hi,

I guess it is just a translation problem in the servired plugin.
Please use the "quote" tag for your copy/paste translations.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 441
  • Thank you received: 24
11 years 10 months ago #85459

I don´t understand your answer, where should i change the translation and what do you mean when you say i should use the tag in copy paste?

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

  • Posts: 26152
  • Thank you received: 4027
  • MODERATOR
11 years 10 months ago #85497

Hi,

The servired plugin was not implemented by the HikaShop team.
After my message, I take a look at the plugin and I have fixed several issues.
One of the issues was the wrong modification of the order status.

You would find something like:

$mailer->setSubject(JText::sprintf('PAYMENT_NOTIFICATION_FOR_ORDER','servired','Confirmado',$dbOrder->order_number));
$body = str_replace('<br/>',"\r\n",JText::sprintf('PAYMENT_NOTIFICATION_STATUS','servired','Confirmado')).' '.JText::sprintf('ORDER_STATUS_CHANGED',$statuses[$order->order_status])."\r\n\r\n".$order_text;
$mailer->setBody($body);
$mailer->Send();
$order->order_status = $element->payment_params->verified_status;
It should be
$order->order_status = $element->payment_params->verified_status;
$mailer->setSubject(JText::sprintf('PAYMENT_NOTIFICATION_FOR_ORDER','servired','Confirmado',$dbOrder->order_number));
$body = str_replace('<br/>',"\r\n",JText::sprintf('PAYMENT_NOTIFICATION_STATUS','servired','Confirmado')).' '.JText::sprintf('ORDER_STATUS_CHANGED',$statuses[$order->order_status])."\r\n\r\n".$order_text;
$mailer->setBody($body);
$mailer->Send();
Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.058 seconds
Powered by Kunena Forum