我需要将卡类型传递给API请求。有任何内置的wocoommerce方法可以做到这一点吗?
我正在使用它生成woocommerce信用卡表格
public function payment_fields() {
$ggowlwoo_form = new WC_Payment_Gateway_CC();
$ggowlwoo_form->id = $this->id;
$ggowlwoo_form->supports = $this->supports;
$ggowlwoo_form->form();
}