Skip to content

Commit

Permalink
Merge pull request #8 from PaystackHQ/feat/add-zar-to-currencies
Browse files Browse the repository at this point in the history
Add ZAR to supported currencies
  • Loading branch information
kuassi-paystack authored Nov 6, 2020
2 parents 0fef381 + 61e491e commit 0127050
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/gateways/paystack.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ function paystack_link($params)
$txnref = $invoiceId . '_' .time();


if (!in_array(strtoupper($currency), [ 'NGN', 'USD', 'GHS' ])) {
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>");
if (!in_array(strtoupper($currency), [ 'NGN', 'USD', 'GHS', 'ZAR' ])) {
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>");
}

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

0 comments on commit 0127050

Please sign in to comment.