register( $c->get( 'blocks.method' ) ); } ); woocommerce_store_api_register_payment_requirements( array( 'data_callback' => function() use ( $c ): array { $smart_button = $c->get( 'button.smart-button' ); assert( $smart_button instanceof SmartButton ); if ( isset( $smart_button->script_data()['continuation'] ) ) { return array( 'ppcp_continuation' ); } return array(); }, ) ); } } /** * Returns the key for the module. * * @return string|void */ public function getKey() { } }