• suggested the changes on AICS ipay88 plugin
    /var/www/html/wp-content/plugins/aics-ipay88-woocommerce2/libs/faiz-gateway-class.php

    method
    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();

    • This topic was modified 6 years, 9 months ago by tanleekent.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘faiz-gateway-class.php modification to allow guest to check out and make payment’ is closed to new replies.