The payment form is not displaying via this plugin

i have gone over this code so many times and i think i need a fresh pair of eyes to help me look through the code

//configurations
$current_payment_gateway = apply_filters(‘goodlayers_payment_get_option’, ”, ‘credit-card-payment-gateway’);
if( $current_payment_gateway == ‘paystack’ ){
//include_once(TOURMASTER_LOCAL . ‘/include/paystack/autoload.php’);
add_action(‘goodlayers_payment_page_init’, ‘goodlayers_paystack_payment_page_init’);
add_filter(‘goodlayers_plugin_payment_attribute’, ‘goodlayers_paystack_payment_attribute’);
add_filter(‘goodlayers_paystack_payment_form’, ‘goodlayers_paystack_payment_form’, 10, 2);;
add_action(‘wp_ajax_paystack_payment_charge’, ‘goodlayers_paystack_payment_charge’);
add_action(‘wp_ajax_nopriv_paystack_charge’, ‘goodlayers_paystack_payment_charge’);
}
if( !function_exists(‘goodlayers_paystack_payment_page_init’) ){
function goodlayers_paystack_payment_page_init( $options ){
add_action(‘wp_head’, ‘goodlayers_paystack_payment_script_include’);
}
}
if( !function_exists(‘goodlayers_paystack_payment_script_include’) ){
function goodlayers_paystack_payment_script_include( $options ){
echo ”;
}
}
if( !function_exists(‘goodlayers_paystack_payment_attribute’) ){
function goodlayers_paystack_payment_attribute( $attributes ){
return array(‘method’ => ‘ajax’, ‘type’ => ‘paystack’);
}
}

if( !function_exists(‘goodlayers_paystack_payment_form’) ){
function goodlayers_paystack_payment_form( $ret = ”, $tid = ” ){
//$publishable_key = apply_filters(‘goodlayers_payment_get_option’, ”, ‘paystack_lsk’);
ob_start();?>
<div class=”goodlayers-payment-form goodlayers-with-border” >
<form action=”” method=”POST” id=”goodlayers-paystack-payment-form” >

Pay now

<input type=”hidden” name=”tid” value=”<?php echo esc_attr($tid) ?>” />

<!– for proceeding to last step –>
<div class=”goodlayers-payment-plugin-complete” ></div>
</form>

Read more here:: The payment form is not displaying via this plugin

Leave a Reply

Your email address will not be published. Required fields are marked *