mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-08 21:52:55 +08:00
Hide Fastlane settings for non-US based merchants
This commit is contained in:
parent
5f9f94cef0
commit
b88d97a384
2 changed files with 45 additions and 43 deletions
|
@ -369,6 +369,12 @@ $data_rows_html
|
|||
) {
|
||||
continue;
|
||||
}
|
||||
if (
|
||||
in_array( 'axo', $config['requirements'], true )
|
||||
&& $this->api_shop_country !== 'US'
|
||||
) {
|
||||
continue;
|
||||
}
|
||||
$value = $this->settings->has( $field ) ? $this->settings->get( $field ) : ( isset( $config['value'] ) ? $config['value']() : null );
|
||||
$key = 'ppcp[' . $field . ']';
|
||||
$id = 'ppcp-' . $field;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue