shopp_checkout_gateway_inputs

filters any additional inputs needed for processing for a gateway.

add_filter( 'shopp_checkout_gateway_inputs', [callback] )

@param string $content additional inputs needed in the checkout form to process for particular payment gateway.

Description

filters any additional inputs needed for processing for a gateway.

By default, calling the shopp(‘checkout’,’gateway-inputs’) Shopp template tag does not output anything. A payment gateway implementation may require one or more input fields on the checkout form, in which case, this filter is the proper way to implement them.

Example

// register filter callback
add_filter('shopp_checkout_gateway_inputs', 'my_gateway_inputs_filter');

// create filter function
function my_filter( $content ) {
    // add additional input for my gateway
    $content .= '<div id="my_gateway_input"><input /></div>';
    return $content;
}

See Also

You must be logged in to post a comment.

© Ingenesis Limited. Shopp™ is a registered trademark of Ingenesis Limited.

Skip to toolbar