Ask, reply and learn. Join the community of Akaunting.
I've created a listener using PaymentMethodShowing with the following function:
public function handle(Event $event)
{
$method['name'] = 'Payment Method Name';
$method['code'] = 'Payment Method Code';
$method['customer'] = "1";
$method['order'] = "3";
$event->modules->payment_methods[] = $method;
}
The code works on the admin side as it appears as a payment method, but not in the customer portal. What could I be missing, or how should I go about it.
Hello Kelvin,
That should work normally. Can you please create an issue on M-Pesa repository so we could check it further?
Regards
Showing 1 to 2 of 2 discussions