payumoney-india / PUM-WHMCS-7.xx

1 stars 1 forks source link

Not Supporting for version 7.5.1 #2

Open ProgrammerNomad opened 6 years ago

ProgrammerNomad commented 6 years ago

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

ProgrammerNomad commented 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.

sonuyos commented 5 years ago

@shivsingh7150 is this in reference to invoice not getting auto marked as paid?

maitpatni commented 5 years ago

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?

miroshini commented 4 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.

payemnt can done but page will be empty

after pay