- Posts: 462
- Thank you received: 19
Instalar BIZUM
- Reincidente
-
Topic Author
- Offline
¿Sabéis dónde puedo conseguir el plugin para poder instalar BIZUM como forma de pago?
Un saludo.
Please Log in or Create an account to join the conversation.
It seems this plugin supports Bizum:
modulosdepago.es/pago-hikashop-redsys
You'll have to purchase it from there.
Please Log in or Create an account to join the conversation.
- Reincidente
-
Topic Author
- Offline
- Posts: 462
- Thank you received: 19
He visto este plugin pero si lees la descripción del mismo no pone que tenga la opción de Bizum configurada.
Un saludo!!
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
I think it will be best to directly ask them as "Bizum" is actually stipulated in their product page.
Kind regards,
Mohamed
Please Log in or Create an account to join the conversation.
the plugin for BIZUM is the same as that of servired but adding
DS_MERCHANT_PAYMETHODS = "z"
Please Log in or Create an account to join the conversation.
I looked a bit around, and it seems that servired plugin preinstalled in HikaShop can indeed work for bizum, redsys, etc.
But I'm not sure about this DS_MERCHANT_PAYMETHODS parameter.
I thought that without this parameter, the plugin will display all available payment methods. Is that not the case ?
Is that parameter needed to be set to a specific value for some payment gateways ?
I'm not clear on it, especially since the documentations I could find around internet for the parameter DS_MERCHANT_PAYMETHODS don't all mention the same values.
Please Log in or Create an account to join the conversation.
Yes,
It is only duplicating the same plugin (servired) and insert: DS_MERCHANT_PAYMETHODS
with the z value, the system directs you to the bizum payment, the rest of the plugin works exactly the same.
There is nothing else to do.
Thanks!
.
Please Log in or Create an account to join the conversation.
And if you don't add that parameter with the "z" what happens ? Don't you get a page where you can select bizum and then get redirected to it ?
Please Log in or Create an account to join the conversation.
If you don't put the parameter z in DS_MERCHANT_PAYMETHODS
the plugin takes you to the redsys (servired) credit / debit card payment platform.
First of all, you have to make sure that you have activated the payment by Bizum in your bank.
Thanks.
Please log in or register to see it.
Please Log in or Create an account to join the conversation.
We have now add a new settings to define the pay method (like Bizum) thanks to your return.
And so thank you for this feedback !
Best regards
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Investigating a bit, I see that it is also possible to make refunds through the Redsys/Servired payment gateway. In this case, it is configuring "DS_MERCHANT_TRANSACTIONTYPE": "3", as indicated on the redsys website:
pagosonline.redsys.es/funcionalidades-devolucion.html
The only thing that in this case is applying the return from the administration panel through the corresponding order, and I can't get it to work.
Could you give me some hint to be able to add this functionality?
Thank you very much and best regards.
Please Log in or Create an account to join the conversation.
You would need to implement the onBeforeOrderUpdate event of HikaShop. In it, you would first need to check $order->order_status and $order->old->order_status to make sure that the new status is refunded and the old one is confirmed.
Then, you would need to send a cURL request ( phpenthusiast.com/blog/five-php-curl-examples ) to the payment gateway with the JSON from that documentation page.
Then, based on the answer of the payment gateway, you would let the status change, or set the $do variable to false to cancel the status change to notify the administrator that it didn't work.
Please Log in or Create an account to join the conversation.
I'm a bit lost on this issue. I imagine that the implementation must be done in the order/changestatus view of the administration. I'm right?
Thanks
Please Log in or Create an account to join the conversation.
No, the code would have to be added as a plugin.
Here is a base code for the plugin you could write:
Create a new directory on your computer and navigate to it.
Create a new text file called orderstatusupdate.php and paste the PHP code for the plugin into it.
Create a new text file called orderstatusupdate.xml and paste the XML code for the plugin into it.
Select both orderstatusupdate.php and orderstatusupdate.xml in your file explorer, right-click on them, and choose "Send to > Compressed (zipped) folder". This will create a new ZIP file called orderstatusupdate.zip containing both of the files.
You can then upload the ZIP file via the Joomla extensions installer to install the plugin and then publish it.
Please Log in or Create an account to join the conversation.