theqland
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
It is a long standing bug that need to be fixed.
Follow this one I think
https://github.com/woocommerce/woocommerce-gateway-stripe/issues/3105
any update?
Hello Shameem,
Are you in test mode or normal mode. On my end, test mode works with new checkout experience, but normal mode won’t work. I checked the code, because test mode is not calling the capability api.
This is the related code:
public function is_capability_active() { // Treat all capabilities as active when in test mode. $plugin_settings = get_option( 'woocommerce_stripe_settings' ); $test_mode_setting = ! empty( $plugin_settings['testmode'] ) ? $plugin_settings['testmode'] : 'no'; if ( 'yes' === $test_mode_setting ) { return true; } // Otherwise, make sure the capability is available. $capabilities = $this->get_capabilities_response(); if ( empty( $capabilities ) ) { return false; } $key = $this->get_id() . '_payments'; return isset( $capabilities[ $key ] ) && 'active' === $capabilities[ $key ]; }
I also tried to call the stripe api directly,
$stripe = new \Stripe\StripeClient('stripe key'); //test1 get allCapabilities, it won't return alipay and wechat $res=$stripe->accounts->allCapabilities('account_id', []); echo print_r($res,true);
And it won’t return alipay for standard account.
Viewing 4 replies - 1 through 4 (of 4 total)