Allow GooglePay use for non referral merchants

This commit is contained in:
Pedro Silva 2023-10-11 08:51:22 +01:00
parent c30ddd3b64
commit 8c6a58d05c
No known key found for this signature in database
GPG key ID: E2EE20C0669D24B3
4 changed files with 28 additions and 24 deletions

View file

@ -25,6 +25,7 @@ return array(
}
$is_available = $container->get( 'googlepay.available' );
$is_referral = $container->get( 'googlepay.is_referral' );
$insert_after = function( array $array, string $key, array $new ): array {
$keys = array_keys( $array );
@ -70,7 +71,7 @@ return array(
->to_array(),
$display_manager
->rule()
->condition_is_true( $is_available )
->condition_is_true( $is_available || ! $is_referral )
->action_enable( 'googlepay_button_enabled' )
->action_enable( 'googlepay_button_type' )
->action_enable( 'googlepay_button_color' )