Skip to content

Commit 0127050

Browse files
Merge pull request #8 from PaystackHQ/feat/add-zar-to-currencies
Add ZAR to supported currencies
2 parents 0fef381 + 61e491e commit 0127050

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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' ])) {
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 and GHS payments. <i>$currency</i> not yet supported.</b>");
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>");
122122
}
123123

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

0 commit comments

Comments
 (0)