Hi,
I would recommend to base yourself on the "banktransfer" payment plugin (folder plugins/banktransfer).
I would also recommend to add the src folder from
github.com/EventSquare/payconiq-api-php
to it.
Basically, what you want to change in the banktransfer_end.php file.
There, instead of displaying instructions to do the bank transfer manually, you want to include the file src/Client.php and then use the code provided on the
github.com/EventSquare/payconiq-api-php
page to get back the qrcode URL so that you can display it.
This will then appear at the end of the checkout so that the customer can scan the qrcode with his smartphone.
Ideally, you could also add a onPaymentNotification function from another payment plugin like Stripe and give in the $callbackUrl variable the payment notification of your payment plugin:
HIKASHOP_LIVE.'index.php?option=com_hikashop&ctrl=checkout&task=notify¬if_payment='.$this->name.'&tmpl=component&orderid='.$order->order_id
You would need to adapt the noPaymentNotification to use the data from your payment gateway as presented here:
payconiq-payments-v3.docs.stoplight.io/c...o-merchants/callback