Buttons Not Displaying
-
In Classic checkout, there’s only one radio button for Google Pay without a title and Paypal buttons are not displaying. In other installations, Google, Apple, and Paypal buttons are in the same gateway. It’s also not displaying the black credit card button.
This works on other sites to display the credit card button:
add_filter( 'woocommerce_paypal_payments_override_acdc_status_with_bcdc', '__return_true' );
add_filter( 'pre_option_woocommerce_ppcp-card-button-gateway_settings', static fn() => [] );
add_filter(
'woocommerce_paypal_payments_sdk_disabled_funding_hook',
static function( array $disable_funding, array $flags ) {
if ( ( $flags['context'] ?? '' ) !== 'checkout' ) {
return $disable_funding;
}
return array_filter(
$disable_funding,
static fn( string $funding_source ) => $funding_source !== 'card'
);
},
100,
2
);When that code is disabled, advanced card processing comes up in a radio button, but it’s disabled in settings.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.