mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Fix Pay Later button admin preview
This commit is contained in:
parent
4d0adae73b
commit
ac420a6d7e
2 changed files with 2 additions and 2 deletions
|
@ -962,7 +962,7 @@ class SmartButton implements SmartButtonInterface {
|
|||
}
|
||||
|
||||
$enable_funding = array( 'venmo' );
|
||||
if ( $this->settings_status->is_pay_later_messaging_enabled() || ! in_array( 'credit', $disable_funding, true ) ) {
|
||||
if ( $this->settings_status->is_pay_later_messaging_enabled_for_location( $this->context() ) || ! in_array( 'credit', $disable_funding, true ) ) {
|
||||
$enable_funding[] = 'paylater';
|
||||
}
|
||||
|
||||
|
|
|
@ -68,7 +68,7 @@ import MessageRenderer from "../../../ppcp-button/resources/js/modules/Renderer/
|
|||
'currency': PayPalCommerceGatewaySettings.currency,
|
||||
'integration-date': PayPalCommerceGatewaySettings.integration_date,
|
||||
'components': ['buttons', 'funding-eligibility', 'messages'],
|
||||
'enable-funding': ['venmo'],
|
||||
'enable-funding': ['venmo', 'paylater'],
|
||||
'buyer-country': PayPalCommerceGatewaySettings.country,
|
||||
};
|
||||
if (disabledSources?.length) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue