Skip to content

Commit 6029750

Browse files
Merge pull request #16 from OWUREE/currency-fix
updated the paystack.php file with the new supported currencies (EGP,…
2 parents 9b290f3 + 6d68a7a commit 6029750

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

modules/gateways/paystack.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ function paystack_link($params)
117117
$txnref = $invoiceId . '_' .time();
118118

119119

120-
if (!in_array(strtoupper($currency), [ 'NGN', 'USD', 'GHS', 'ZAR' ])) {
121-
return ("<b style='color:red;margin:2px;padding:2px;border:1px dotted;display: block;border-radius: 10px;font-size: 13px;'>Sorry, this version of the Paystack WHMCS plugin only accepts NGN, USD, GHS, and ZAR payments. <i>$currency</i> not yet supported.</b>");
120+
if (!in_array(strtoupper($currency), [ 'NGN', 'USD', 'GHS', 'ZAR', 'EGP', 'XOF', 'KES', 'RWF' ])) {
121+
return ("<b style='color:red;margin:2px;padding:2px;border:1px dotted;display: block;border-radius: 10px;font-size: 13px;'>Sorry, this version of the Paystack WHMCS plugin only accepts NGN, USD, GHS, ZAR, EGP, XOF, KES, and RWF payments. <i>$currency</i> not yet supported.</b>");
122122
}
123123

124124
$isSSL = ((!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') || $_SERVER['SERVER_PORT'] == 443);

0 commit comments

Comments
 (0)