Skip to content

Commit c969129

Browse files
committed
USD and GBP support
1 parent 8ab48da commit c969129

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

includes/class-paystack-deprecated.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function __construct() {
6161
*/
6262
public function is_valid_for_use() {
6363

64-
if ( ! in_array( get_woocommerce_currency(), apply_filters( 'woocommerce_paystack_supported_currencies', array( 'NGN' ) ) ) ) {
64+
if ( ! in_array( get_woocommerce_currency(), apply_filters( 'woocommerce_paystack_supported_currencies', array( 'NGN','USD','GBP') ) ) ) {
6565

6666
$this->msg = 'Paystack does not support your store currency. Kindly set it to Nigerian Naira &#8358; <a href="' . admin_url( 'admin.php?page=wc-settings&tab=general' ) . '">here</a>';
6767

includes/class-paystack.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ public function __construct() {
7676
*/
7777
public function is_valid_for_use() {
7878

79-
if ( ! in_array( get_woocommerce_currency(), apply_filters( 'woocommerce_paystack_supported_currencies', array( 'NGN' ) ) ) ) {
79+
if ( ! in_array( get_woocommerce_currency(), apply_filters( 'woocommerce_paystack_supported_currencies', array( 'NGN','USD','GBP') ) ) ) {
8080

81-
$this->msg = 'Paystack does not support your store currency. Kindly set it to Nigerian Naira &#8358; <a href="' . admin_url( 'admin.php?page=wc-settings&tab=general' ) . '">here</a>';
81+
$this->msg = 'Paystack does not support your store currency. Kindly set it to Nigerian Naira, USD or GBP &#8358; <a href="' . admin_url( 'admin.php?page=wc-settings&tab=general' ) . '">here</a>';
8282

8383
return false;
8484

0 commit comments

Comments
 (0)