faiz-gateway-class.php modification to allow guest to check out and make payment
-
suggested the changes on AICS ipay88 plugin
/var/www/html/wp-content/plugins/aics-ipay88-woocommerce2/libs/faiz-gateway-class.phpmethod
public function preparePayment($order_id){// we cannot use wp_get_current_user(); because quest need to be able to check out
// we will use get_billing_phone, get_billing_first_name, get_billing_last_name and get_billing_email
// to get all the user billing detail// $current_user = wp_get_current_user();
// $user_phone = get_user_meta($current_user->ID, ‘billing_phone’, true);$user_phone = $order->get_billing_phone();
$user_name = $order->get_billing_first_name().’ ‘.$order->get_billing_last_name();
$user_email = $order->get_billing_email();
- The topic ‘faiz-gateway-class.php modification to allow guest to check out and make payment’ is closed to new replies.