mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Refactor ApplePay notices
Refactor AppleProductStatus
This commit is contained in:
parent
5d406ea612
commit
20f64d63ed
8 changed files with 438 additions and 155 deletions
|
@ -45,7 +45,6 @@ class GooglepayModule implements ModuleInterface {
|
|||
function( Settings $settings = null ) use ( $c ): void {
|
||||
$apm_status = $c->get( 'googlepay.helpers.apm-product-status' );
|
||||
assert( $apm_status instanceof ApmProductStatus );
|
||||
|
||||
$apm_status->clear( $settings );
|
||||
}
|
||||
);
|
||||
|
|
|
@ -107,7 +107,6 @@ class AvailabilityNotice {
|
|||
* @psalm-suppress MissingClosureParamType
|
||||
*/
|
||||
static function ( $notices ): array {
|
||||
|
||||
$message = sprintf(
|
||||
// translators: %1$s and %2$s are the opening and closing of HTML <a> tag.
|
||||
__(
|
||||
|
@ -142,7 +141,6 @@ class AvailabilityNotice {
|
|||
* @psalm-suppress MissingClosureParamType
|
||||
*/
|
||||
static function ( $notices ): array {
|
||||
|
||||
$message = sprintf(
|
||||
__(
|
||||
'Google Pay is not available on your PayPal seller account.',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue