Skip to main content

Instalar BIZUM

More
5 years 11 months ago #325061 by Reincidente
Instalar BIZUM was created by Reincidente
Hola, buenas tardes.
¿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.

More
5 years 11 months ago #325063 by nicolas
Replied by nicolas on topic Instalar BIZUM
Hi,

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.

More
5 years 11 months ago #325079 by Reincidente
Replied by Reincidente on topic Instalar BIZUM
Hola.
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.

More
5 years 11 months ago - 5 years 11 months ago #325113 by Mohamed Thelji
Replied by Mohamed Thelji on topic Instalar BIZUM
Hello,

I think it will be best to directly ask them as "Bizum" is actually stipulated in their product page.

Kind regards,
Mohamed
Last edit: 5 years 11 months ago by Mohamed Thelji.

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

More
4 years 10 months ago #337450 by dvddvd
Replied by dvddvd on topic Instalar BIZUM
Hello

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.

More
4 years 10 months ago #337474 by nicolas
Replied by nicolas on topic Instalar BIZUM
Hi,

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.

More
4 years 10 months ago #337560 by dvddvd
Replied by dvddvd on topic Instalar BIZUM
Hi Nicolas,

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.

More
4 years 10 months ago #337567 by nicolas
Replied by nicolas on topic Instalar BIZUM
Hi,

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.

More
4 years 10 months ago #337573 by dvddvd
Replied by dvddvd on topic Instalar BIZUM
Hi Nicolas,
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.

This attachment is hidden for guests.
Please log in or register to see it.

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

More
4 years 10 months ago #337619 by Philip
Replied by Philip on topic Instalar BIZUM
Hello,

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.

More
4 years 10 months ago #337625 by dvddvd
Replied by dvddvd on topic Instalar BIZUM
Thanks to you for always being aware and solving our inquiries.
The following user(s) said Thank You: Philip

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

More
3 years 9 months ago #347538 by dvddvd
Replied by dvddvd on topic Instalar BIZUM
Hello,
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.

More
3 years 9 months ago #347540 by nicolas
Replied by nicolas on topic Instalar BIZUM
Hi,

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.
The following user(s) said Thank You: dvddvd

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

More
3 years 8 months ago #348105 by dvddvd
Replied by dvddvd on topic Instalar BIZUM
Sorry Nicolas,
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.

More
3 years 8 months ago #348106 by nicolas
Replied by nicolas on topic Instalar BIZUM
Hi,

No, the code would have to be added as a plugin.
Here is a base code for the plugin you could write:
Code:
<?php // Ensure that the cURL library is included if (!function_exists('curl_init')) { die('cURL is not installed!'); } class plgHikashopOrderStatusUpdate extends JPlugin { public function onAfterOrderUpdate(&$order) { // Check if the order status has changed if ($order->old->order_status != $order->order_status) { // Set up cURL request $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://example.com/api/order_status_update"); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, "order_id={$order->order_id}&status={$order->order_status}"); // Send request and close cURL handle curl_exec($ch); curl_close($ch); } } }
and the XML file of the plugin:
Code:
<?xml version="1.0" encoding="utf-8"?> <extension version="3.8" type="plugin" group="hikashop" method="upgrade"> <name>PLG_HIKASHOP_ORDERSTATUSUPDATE</name> <author>Your Name</author> <creationDate>January 2021</creationDate> <copyright>Copyright (C) 2021 Your Company. All rights reserved.</copyright> <license>GNU General Public License version 2 or later; see LICENSE.txt</license> <authorEmail>you@example.com</authorEmail> <authorUrl>http://www.example.com</authorUrl> <version>1.0.0</version> <description>Sends a cURL request to a server when the order status is updated in Hikashop.</description> <files> <filename plugin="orderstatusupdate">orderstatusupdate.php</filename> </files> <config> </config> </extension>
You can easily create the ZIP install file yourself once you write the code for the cURL request by following these steps:

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.
The following user(s) said Thank You: dvddvd

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

Time to create page: 0.265 seconds
Powered by Kunena Forum