autoship_get_payment_method_gateway_type (function)
(src/payments.php) Takes a gateway id as an argument and returns either "standard" if the gateway is a standard WooCommerce token table gateway otherwise the gateway id if the gateway uses a custom token storage method.
Function:
/** * Returns the type of gateway it is ( tokenized or non-standard ) * @param string The gateway * @return string standard for tokenized otherwise the gateway. */ function autoship_get_payment_method_gateway_type( $gateway ) { $types = apply_filters( 'autoship_payment_method_gateway_type', array( 'authorize_net_cim_credit_card' => 'authorize_net', 'stripe' => 'standard', 'trustcommerce' => 'standard', 'autoship-test-gateway' => 'test_gateway', 'ppec_paypal' => 'ppec', 'braintree_credit_card' => 'braintree', 'braintree_paypal' => 'braintree_paypal', 'cybersource' => 'standard', 'nmi_gateway_woocommerce_credit_card' => 'standard', 'sagepaymentsusaapi' => 'standard', 'square_credit_card' => 'square', 'sagepaydirect' => 'standard' ); return isset( $types[$gateway] ) ? $types[$gateway] : ''; }