Skip to content

Commit

Permalink
Updated to Fiuu rebranding.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Nicole Lyton Fonte committed Jul 19, 2024
1 parent 8fe9d8f commit 31a266d
Show file tree
Hide file tree
Showing 219 changed files with 2,373 additions and 2,353 deletions.
36 changes: 18 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@

<img src="https://user-images.githubusercontent.com/38641542/74420753-eacb5600-4e86-11ea-9389-5427e4c6840d.jpg">

Razer Merchant Services Plugin for Wordpress developed by RMS technical team.
Fiuu Plugin for Wordpress developed by RMS technical team.

Introduction
-----

This is Razer Merchant Services Woocommerce Plugin for Wordpress and ClassicPress Plugin for eCommerce. WooCommerce is an ecommerce plugin for WordPress. It makes creating and managing an online store simple, with reasonable levels of flexibility and several vital features such as inventory and tax management, secure payments and shipping integration
This is Fiuu Woocommerce Plugin for Wordpress and ClassicPress Plugin for eCommerce. WooCommerce is an ecommerce plugin for WordPress. It makes creating and managing an online store simple, with reasonable levels of flexibility and several vital features such as inventory and tax management, secure payments and shipping integration

Notes / Prerequisite
-----

Razer Merchant Services is not responsible for any problems that might arise from the use of this module.
Fiuu is not responsible for any problems that might arise from the use of this module.
Use at your own risk. Please backup any critical data before proceeding. For any query or
assistance, please email support-sa@razer.com.
assistance, please email support-sa@fiuu.com.


Installations Guidance for Wordpress Plugin
Expand All @@ -39,28 +39,28 @@ You can contribute to this plugin by sending the pull request to this repository

## Resources

- GitHub: https://github.com/RazerMS
- Website: https://merchant.razer.com/
- Twitter: https://twitter.com/Razer_MS
- YouTube: https://www.youtube.com/c/RazerMerchantServices
- Facebook: https://www.facebook.com/RazerMerchantServices/
- Instagram: https://www.instagram.com/RazerMerchantServices/
- GitHub: https://github.com/FiuuPayment
- Website: https://fiuu.com/
- X: https://x.com/FiuuPayment
- YouTube: https://www.youtube.com/@FiuuPayment
- Facebook: https://www.facebook.com/FiuuPayment
- Instagram: https://www.instagram.com/fiuupayment


Issues
------------

Submit issue to this repository or email to our support-sa@razer.com
Submit issue to this repository or email to our support-sa@fiuu.com


Contact Support
-------

Merchant Technical Support / Customer Care : support-sa@razer.com <br>
Sales/Reseller Enquiry : sales-sa@razer.com <br>
Marketing Campaign : marketing-sa@razer.com <br>
Channel/Partner Enquiry : channel-sa@razer.com <br>
Media Contact : media-sa@razer.com <br>
R&D and Tech-related Suggestion : technical-sa@razer.com <br>
Abuse Reporting : abuse-sa@razer.com
Merchant Technical Support / Customer Care : support-sa@fiuu.com <br>
Sales/Reseller Enquiry : sales-sa@fiuu.com <br>
Marketing Campaign : marketing-sa@fiuu.com <br>
Channel/Partner Enquiry : channel-sa@fiuu.com <br>
Media Contact : media-sa@fiuu.com <br>
R&D and Tech-related Suggestion : technical-sa@fiuu.com <br>
Abuse Reporting : abuse-sa@fiuu.com

Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change log for WooCommerce Razer Merchant Services Normal Plugin

## Company Rebranding - July 19, 2024

- Rebranded to Fiuu

## v3.0.2 - July 14, 2020

**Bug Fix:**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change log for WooCommerce Razer Merchant Services Seamless Plugin for Sequential Order Numbers

## Company Rebranding - July 19, 2024

- Rebranded to Fiuu

## v3.0.1 - Apr 21, 2020

- Release version 3.0.1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change log for WooCommerce Razer Merchant Services Seamless Plugin for Sequential Order Numbers Pro

## Company Rebranding - July 19, 2024

- Rebranded to Fiuu

## v3.0.1 - Apr 21, 2020

- Release version 3.0.1
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
<?php
/**
* Razer Merchant Services WooCommerce Shopping Cart Plugin
* Fiuu WooCommerce Shopping Cart Plugin
*
* @author Razer Merchant Services Technical Team <[email protected]>
* @author Fiuu Technical Team <[email protected]>
* @version 7.7.0
* @example For callback : http://shoppingcarturl/?wc-api=WC_Molpay_Gateway
* @example For notification : http://shoppingcarturl/?wc-api=WC_Molpay_Gateway
*/

/**
* Plugin Name: WooCommerce Razer Merchant Services Normal
* Plugin Name: WooCommerce Fiuu Normal
* Plugin URI: https://github.com/RazerMS/WordPress_WooCommerce_WP-eCommerce_ClassiPress
* Description: WooCommerce Razer Merchant Services | The leading payment gateway in South East Asia Grow your business with Razer Merchant Services payment solutions & free features: Physical Payment at 7-Eleven, Seamless Checkout, Tokenization, Loyalty Program and more for WooCommerce
* Author: Razer Merchant Services Tech Team
* Description: WooCommerce Fiuu | The leading payment gateway in South East Asia Grow your business with Fiuu payment solutions & free features: Physical Payment at 7-Eleven, Seamless Checkout, Tokenization, Loyalty Program and more for WooCommerce
* Author: Fiuu Tech Team
* Author URI: https://merchant.razer.com/
* Version: 7.7.0
* License: MIT
* Text Domain: wcmolpay
* Text Domain: wc-fiuu
* Domain Path: /languages/
* For callback : http://shoppingcarturl/?wc-api=WC_Molpay_Gateway
* For notification : http://shoppingcarturl/?wc-api=WC_Molpay_Gateway
Expand All @@ -29,7 +29,7 @@
*/
function wcmolpay_woocommerce_fallback_notice() {
$message = '<div class="error">';
$message .= '<p>' . __( 'WooCommerce Razer Merchant Services Gateway depends on the last version of <a href="http://wordpress.org/extend/plugins/woocommerce/">WooCommerce</a> to work!' , 'wcmolpay' ) . '</p>';
$message .= '<p>' . __( 'WooCommerce Fiuu Gateway depends on the last version of <a href="http://wordpress.org/extend/plugins/woocommerce/">WooCommerce</a> to work!' , 'wcmolpay' ) . '</p>';
$message .= '</div>';
echo $message;
}
Expand All @@ -38,7 +38,7 @@ function wcmolpay_woocommerce_fallback_notice() {
add_action( 'plugins_loaded', 'wcmolpay_gateway_load', 0 );

/**
* Load Razer Merchant Services gateway plugin function
* Load Fiuu gateway plugin function
*
* @return mixed
*/
Expand All @@ -54,7 +54,7 @@ function wcmolpay_gateway_load() {
add_filter( 'woocommerce_payment_gateways', 'wcmolpay_add_gateway' );

/**
* Add Razer Merchant Services gateway to ensure WooCommerce can load it
* Add Fiuu gateway to ensure WooCommerce can load it
*
* @param array $methods
* @return array
Expand All @@ -65,24 +65,24 @@ function wcmolpay_add_gateway( $methods ) {
}

/**
* Define the Razer Merchant Services gateway
* Define the Fiuu gateway
*
*/
class WC_Molpay_Gateway extends WC_Payment_Gateway {

/**
* Construct the Razer Merchant Services gateway class
* Construct the Fiuu gateway class
*
* @global mixed $woocommerce
*/
public function __construct() {
global $woocommerce;

$this->id = 'molpay';
$this->icon = plugins_url( 'images/logo_RazerMerchantServices.png', __FILE__ );
$this->icon = plugins_url( 'images/Fiuu_Logo.png', __FILE__ );
$this->has_fields = false;
$this->method_title = __( 'Razer Merchant Services', 'wcmolpay' );
$this->method_description = __( 'Proceed payment via Razer Merchant Services Normal Integration Plugin', 'woocommerce' );
$this->method_title = __( 'Fiuu', 'wcmolpay' );
$this->method_description = __( 'Proceed payment via Fiuu Normal Integration Plugin', 'woocommerce' );

// Load the form fields.
$this->init_form_fields();
Expand Down Expand Up @@ -191,8 +191,8 @@ public function is_valid_for_use() {
*/
public function admin_options() {
?>
<h3><?php _e( 'Razer Merchant Services', 'wcmolpay' ); ?></h3>
<p><?php _e( 'Razer Merchant Services works by sending the user to Razer Merchant Services to enter their payment information.', 'wcmolpay' ); ?></p>
<h3><?php _e( 'Fiuu', 'wcmolpay' ); ?></h3>
<p><?php _e( 'Fiuu works by sending the user to Fiuu to enter their payment information.', 'wcmolpay' ); ?></p>
<table class="form-table">
<?php $this->generate_settings_html(); ?>
</table><!--/.form-table-->
Expand All @@ -208,7 +208,7 @@ public function init_form_fields() {
'enabled' => array(
'title' => __( 'Enable/Disable', 'wcmolpay' ),
'type' => 'checkbox',
'label' => __( 'Enable Razer Merchant Services', 'wcmolpay' ),
'label' => __( 'Enable Fiuu', 'wcmolpay' ),
'default' => 'yes'
),
'ordering_plugin' => array(
Expand All @@ -228,7 +228,7 @@ public function init_form_fields() {
'title' => __( 'Title', 'wcmolpay' ),
'type' => 'text',
'description' => __( 'This controls the title which the user sees during checkout.', 'wcmolpay' ),
'default' => __( 'Razer Merchant Services', 'wcmolpay' ),
'default' => __( 'Fiuu', 'wcmolpay' ),
'desc_tip' => true,
),
'payment_title' => array(
Expand All @@ -243,25 +243,25 @@ public function init_form_fields() {
'title' => __( 'Description', 'wcmolpay' ),
'type' => 'textarea',
'description' => __( 'This controls the description which the user sees during checkout.', 'wcmolpay' ),
'default' => __( 'Pay with Razer Merchant Services', 'wcmolpay' ),
'default' => __( 'Pay with Fiuu', 'wcmolpay' ),
'desc_tip' => true,
),
'merchant_id' => array(
'title' => __( 'Merchant ID', 'wcmolpay' ),
'type' => 'text',
'description' => __( 'Please enter your Razer Merchant Services Merchant ID.', 'wcmolpay' ) . ' ' . sprintf( __( 'You can to get this information in: %sRazer Merchant Services Account%s.', 'wcmolpay' ), '<a href="https://portal.merchant.razer.com/" target="_blank">', '</a>' ),
'description' => __( 'Please enter your Fiuu Merchant ID.', 'wcmolpay' ) . ' ' . sprintf( __( 'You can to get this information in: %sFiuu Account%s.', 'wcmolpay' ), '<a href="https://portal.merchant.razer.com/" target="_blank">', '</a>' ),
'default' => ''
),
'verify_key' => array(
'title' => __( 'Verify Key', 'wcmolpay' ),
'type' => 'text',
'description' => __( 'Please enter your Razer Merchant Services Verify Key.', 'wcmolpay' ) . ' ' . sprintf( __( 'You can to get this information in: %sRazer Merchant Services Account%s.', 'wcmolpay' ), '<a href="https://portal.merchant.razer.com/" target="_blank">', '</a>' ),
'description' => __( 'Please enter your Fiuu Verify Key.', 'wcmolpay' ) . ' ' . sprintf( __( 'You can to get this information in: %sFiuu Account%s.', 'wcmolpay' ), '<a href="https://portal.merchant.razer.com/" target="_blank">', '</a>' ),
'default' => ''
),
'secret_key' => array(
'title' => __( 'Secret Key', 'wcmolpay' ),
'type' => 'text',
'description' => __( 'Please enter your Razer Merchant Services Secret Key.', 'wcmolpay' ) . ' ' . sprintf( __( 'You can to get this information in: %sRazer Merchant Services Account%s.', 'wcmolpay' ), '<a href="https://portal.merchant.razer.com/" target="_blank">', '</a>' ),
'description' => __( 'Please enter your Fiuu Secret Key.', 'wcmolpay' ) . ' ' . sprintf( __( 'You can to get this information in: %sFiuu Account%s.', 'wcmolpay' ), '<a href="https://portal.merchant.razer.com/" target="_blank">', '</a>' ),
'default' => ''
),
'account_type' => array(
Expand Down Expand Up @@ -365,7 +365,7 @@ public function receipt_page( $order ) {
}

/**
* Check for Razer Merchant Services Response
* Check for Fiuu Response
*
* @access public
* @return void
Expand All @@ -380,7 +380,7 @@ function check_ipn_response() {
} else if ( $_POST['nbcb']=='2' ) {
do_action ( "valid_molpay_request_notification", $_POST );
} else {
wp_die( "Razer Merchant Services Request Failure" );
wp_die( "Fiuu Request Failure" );
}
}

Expand Down Expand Up @@ -461,7 +461,7 @@ function check_molpay_response_callback() {
*/
public function merchant_id_missing_message() {
$message = '<div class="error">';
$message .= '<p>' . sprintf( __( '<strong>Gateway Disabled</strong> You should fill in your Merchant ID in Razer Merchant Services. %sClick here to configure!%s' , 'wcmolpay' ), '<a href="' . get_admin_url() . 'admin.php?page=wc-settings&tab=checkout&section=wc_molpay_gateway">', '</a>' ) . '</p>';
$message .= '<p>' . sprintf( __( '<strong>Gateway Disabled</strong> You should fill in your Merchant ID in Fiuu. %sClick here to configure!%s' , 'wcmolpay' ), '<a href="' . get_admin_url() . 'admin.php?page=wc-settings&tab=checkout&section=wc_molpay_gateway">', '</a>' ) . '</p>';
$message .= '</div>';
echo $message;
}
Expand All @@ -472,7 +472,7 @@ public function merchant_id_missing_message() {
*/
public function verify_key_missing_message() {
$message = '<div class="error">';
$message .= '<p>' . sprintf( __( '<strong>Gateway Disabled</strong> You should fill in your Verify Key in Razer Merchant Services. %sClick here to configure!%s' , 'wcmolpay' ), '<a href="' . get_admin_url() . 'admin.php?page=wc-settings&tab=checkout&section=wc_molpay_gateway">', '</a>' ) . '</p>';
$message .= '<p>' . sprintf( __( '<strong>Gateway Disabled</strong> You should fill in your Verify Key in Fiuu. %sClick here to configure!%s' , 'wcmolpay' ), '<a href="' . get_admin_url() . 'admin.php?page=wc-settings&tab=checkout&section=wc_molpay_gateway">', '</a>' ) . '</p>';
$message .= '</div>';
echo $message;
}
Expand All @@ -483,7 +483,7 @@ public function verify_key_missing_message() {
*/
public function secret_key_missing_message() {
$message = '<div class="error">';
$message .= '<p>' . sprintf( __( '<strong>Gateway Disabled</strong> You should fill in your Secret Key in Razer Merchant Services. %sClick here to configure!%s' , 'wcmolpay' ), '<a href="' . get_admin_url() . 'admin.php?page=wc-settings&tab=checkout&section=wc_molpay_gateway">', '</a>' ) . '</p>';
$message .= '<p>' . sprintf( __( '<strong>Gateway Disabled</strong> You should fill in your Secret Key in Fiuu. %sClick here to configure!%s' , 'wcmolpay' ), '<a href="' . get_admin_url() . 'admin.php?page=wc-settings&tab=checkout&section=wc_molpay_gateway">', '</a>' ) . '</p>';
$message .= '</div>';
echo $message;
}
Expand All @@ -494,7 +494,7 @@ public function secret_key_missing_message() {
*/
public function account_type_missing_message() {
$message = '<div class="error">';
$message .= '<p>' . sprintf( __( '<strong>Gateway Disabled</strong> Select account type in Razer Merchant Services. %sClick here to configure!%s' , 'wcmolpay' ), '<a href="' . get_admin_url() . 'admin.php?page=wc-settings&tab=checkout&section=wc_molpay_gateway">', '</a>' ) . '</p>';
$message .= '<p>' . sprintf( __( '<strong>Gateway Disabled</strong> Select account type in Fiuu. %sClick here to configure!%s' , 'wcmolpay' ), '<a href="' . get_admin_url() . 'admin.php?page=wc-settings&tab=checkout&section=wc_molpay_gateway">', '</a>' ) . '</p>';
$message .= '</div>';
echo $message;
}
Expand Down Expand Up @@ -542,7 +542,7 @@ public function inquiry_status($tranID, $amount, $domain) {
}

/**
* Update Cart based on Razer Merchant Services status
* Update Cart based on Fiuu status
*
* @global mixed $woocommerce
* @param int $order_id
Expand Down Expand Up @@ -602,11 +602,11 @@ public function update_Cart_by_Status($orderid, $MOLPay_status, $tranID, $refere

$getStatus = $order->get_status();
if(!in_array($getStatus,array('processing','completed'))) {
$order->add_order_note('Razer Merchant Services Payment Status: '.$M_status.'<br>Transaction ID: ' . $tranID . $referer);
$order->add_order_note('Fiuu Payment Status: '.$M_status.'<br>Transaction ID: ' . $tranID . $referer);
if ($MOLPay_status == "00") {
$order->payment_complete();
} else {
$order->update_status($W_status, sprintf(__('Payment %s via Razer Merchant Services.', 'woocommerce'), $tranID ) );
$order->update_status($W_status, sprintf(__('Payment %s via Fiuu.', 'woocommerce'), $tranID ) );
}
if ($this->payment_title == 'yes') {
$paytitle = $this->payment_titles[strtolower($channel)];
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 31a266d

Please sign in to comment.