mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
Fix the naming of google and apple pay buttons mapping
This commit is contained in:
parent
83f71937c7
commit
4a3aaff0eb
1 changed files with 3 additions and 3 deletions
|
@ -23,7 +23,7 @@ class StylingSettingsMapHelper {
|
|||
|
||||
use ContextTrait;
|
||||
|
||||
protected const BUTTON_NAMES = array( 'googlepay', 'applepay', 'pay-later' );
|
||||
protected const BUTTON_NAMES = array( 'ppcp-googlepay', 'ppcp-applepay', 'pay-later' );
|
||||
|
||||
/**
|
||||
* Maps old setting keys to new setting style names.
|
||||
|
@ -84,10 +84,10 @@ class StylingSettingsMapHelper {
|
|||
return $this->mapped_disabled_funding_value( $styling_models );
|
||||
|
||||
case 'googlepay_button_enabled':
|
||||
return $this->mapped_button_enabled_value( $styling_models, 'googlepay' );
|
||||
return $this->mapped_button_enabled_value( $styling_models, 'ppcp-googlepay' );
|
||||
|
||||
case 'applepay_button_enabled':
|
||||
return $this->mapped_button_enabled_value( $styling_models, 'applepay' );
|
||||
return $this->mapped_button_enabled_value( $styling_models, 'ppcp-applepay' );
|
||||
|
||||
case 'pay_later_button_enabled':
|
||||
return $this->mapped_button_enabled_value( $styling_models, 'pay-later' );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue