paymentwall / module-whmcs

Paymentwall Integration Module for WHMCS
MIT License
5 stars 9 forks source link

Typo - Code Error #30

Open hamid-heyhat opened 6 years ago

hamid-heyhat commented 6 years ago

Hello, Following files causes error 5000 as they have some type issue brickccform.php function get_smarty_values($invoice, $invoiceData, $gateways, $publicKey, $whmcsVer, $savedCards, $tokens, $sumBrickToken, $recurring) { return array( 'client' => $invoiceData['clientsdetails'], 'months' => $gateways->getCCDateMonths(), 'years' => $gateways->getCCExpiryDateYears(), 'invoice' => $invoiceData, 'invoiceid' => $invoiceData['invoiceid'], 'invoiceItems' => $invoice->getLineItems(), 'whmcsVer' => $whmcsVer, 'publicKey' => $publicKey, 'processingerror' => '', 'success' => false, 'savedCards' => $savedCards, 'tokens' => $tokens, 'sumBrickToken' => $sumBrickToken, 'isSubscription' => !empty($recurring) ? 1 : 0 }

MOST BE 👍 function get_smarty_values($invoice, $invoiceData, $gateways, $publicKey, $whmcsVer, $savedCards, $tokens, $sumBrickToken, $recurring) { return array( 'client' => $invoiceData['clientsdetails'], 'months' => $gateways->getCCDateMonths(), 'years' => $gateways->getCCExpiryDateYears(), 'invoice' => $invoiceData, 'invoiceid' => $invoiceData['invoiceid'], 'invoiceItems' => $invoice->getLineItems(), 'whmcsVer' => $whmcsVer, 'publicKey' => $publicKey, 'processingerror' => '', 'success' => false, 'savedCards' => $savedCards, 'tokens' => $tokens, 'sumBrickToken' => $sumBrickToken, 'isSubscription' => !empty($recurring) ? 1 : 0 ); }

hamid-heyhat commented 6 years ago

Also on the module file /modules/gateways/paymentwall.php Error in code cause Ops!!! by visiting whmcs admin section:

--/*

REMOVE NUMBER 8 FROM END OF */8

---/*

Remove that 8 from the code!!

michaelpw commented 6 years ago

Hi,

The issues have been fixed.

Can you download the module from the latest release and try again?

Thanks, Michael

saiunes commented 6 years ago

the addon is not working on WHMCS 7.6.0