Title: faiz-gateway-class.php modification to allow guest to check out and make payment
Last modified: July 3, 2018

---

# faiz-gateway-class.php modification to allow guest to check out and make payment

 *  [tanleekent](https://wordpress.org/support/users/tanleekent/)
 * (@tanleekent)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/faiz-gateway-class-php-modification/)
 * 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 7 years, 10 months ago by [tanleekent](https://wordpress.org/support/users/tanleekent/).

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [malbouq](https://wordpress.org/support/users/malbouq/)
 * (@malbouq)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/faiz-gateway-class-php-modification/#post-10497498)
 * Hello
    I m looking for an IT developer to install this plugin within my website
   but with the following requirements: – add other currencies (this plugin is mono
   currency) – correct any issue when updates are done
 * I m currently having this issue: after selecting iPay88 for payment the payment
   template page opens and then the mobile88 one too. But then I go back to the 
   payment template page.
 * Please contact me at: [malika.idder@gmail.com](https://wordpress.org/support/topic/faiz-gateway-class-php-modification/malika.idder@gmail.com?output_format=md)
 * Thank you
 *  Thread Starter [tanleekent](https://wordpress.org/support/users/tanleekent/)
 * (@tanleekent)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/faiz-gateway-class-php-modification/#post-10497584)
 * Hi,
 * base on the code, you can try changing the code in this file line 97
 * [https://plugins.trac.wordpress.org/browser/aics-ipay88-woocommerce/trunk/libs/faiz-gateway-class.php](https://plugins.trac.wordpress.org/browser/aics-ipay88-woocommerce/trunk/libs/faiz-gateway-class.php)
 *  $currency = ‘MYR’;
 * you can try to get the currency from the WC_Order.get_currency()
    refer to the
   below link. [https://docs.woocommerce.com/wp-content/images/wc-apidocs/class-WC_Abstract_Order.html#_get_currency](https://docs.woocommerce.com/wp-content/images/wc-apidocs/class-WC_Abstract_Order.html#_get_currency)
 * above solution was come out from the observation of the plugin implementation
   NOT TESTED.
 *  [malbouq](https://wordpress.org/support/users/malbouq/)
 * (@malbouq)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/faiz-gateway-class-php-modification/#post-10500352)
 * Thanks a lot for the reply on the currency but what about my issue regarding 
   the payment page that doesn’t reach mobileipay88 page and turn like in a circle
   
   You can test it on my website : [http://Www.frangipani-shop.com](http://Www.frangipani-shop.com)
 * Thanks a lot
 *  [malbouq](https://wordpress.org/support/users/malbouq/)
 * (@malbouq)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/faiz-gateway-class-php-modification/#post-10500362)
 * Ok that’s not working and I m getting a fatal error…
    I ve just posted a message
   on this support forum

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.

 * ![](https://s.w.org/plugins/geopattern-icon/aics-ipay88-woocommerce_898888.svg)
 * [AiCS ipay88 Woocommerce](https://wordpress.org/plugins/aics-ipay88-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/aics-ipay88-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/aics-ipay88-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/aics-ipay88-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/aics-ipay88-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/aics-ipay88-woocommerce/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [malbouq](https://wordpress.org/support/users/malbouq/)
 * Last activity: [7 years, 9 months ago](https://wordpress.org/support/topic/faiz-gateway-class-php-modification/#post-10500362)
 * Status: not resolved