Open ProgrammerNomad opened 6 years ago
issues solved Need to add fee also on function addInvoicePayment() of file payu_response.php
Just replace on line 56
From:
addInvoicePayment($invoiceid, $transid, $amount, $gatewaymodule);
To:
addInvoicePayment($invoiceid, $transid, $amount, $fee, $gatewaymodule);
After that working perfect.
@shivsingh7150 is this in reference to invoice not getting auto marked as paid?
If I add the $fee on function addInvoicePayment() it adds the invoice amount as gateway fee in your invoice. For the time I have declared the $fee to 0 so that it shows 0 in gateway charges in the invoice. Is there any other workaround for this issue?
issues solved Need to add fee also on function addInvoicePayment() of file payu_response.php
Just replace on line 56
From:
addInvoicePayment($invoiceid, $transid, $amount, $gatewaymodule);
To:
addInvoicePayment($invoiceid, $transid, $amount, $fee, $gatewaymodule);
After that working perfect.
payemnt can done but page will be empty
after pay
Hello,
Its not supporting for WHMCS 7.5.1 with php 7.2 so please help me on this issue.
Error on call back:
ArgumentCountError: Too few arguments to function addInvoicePayment(), 4 passed in /modules/gateways/callback/payu_response.php on line 56 and at least 5 expected in /includes/invoicefunctions.php:0 Stack trace:
0 /modules/gateways/callback/payu_response.php(56): addInvoicePayment(6822, '149200', '10.0', 'payu')
1 {main}
its look like WHMCS made some changes on 7.5
Refer: https://developers.whmcs.com/api-reference/addinvoicepayment/
Thanks