-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dan Nicole Lyton Fonte
committed
Jul 19, 2024
1 parent
8fe9d8f
commit 31a266d
Showing
219 changed files
with
2,373 additions
and
2,353 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
WooCommerce/CHANGELOG_RMS_NORMAL.md → WooCommerce/CHANGELOG_FIUU_NORMAL.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
..._RMS_SEAMLESS_SEQUENTIAL_ORDER_NUMBERS.md → ...FIUU_SEAMLESS_SEQUENTIAL_ORDER_NUMBERS.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
..._SEAMLESS_SEQUENTIAL_ORDER_NUMBERS_PRO.md → ..._SEAMLESS_SEQUENTIAL_ORDER_NUMBERS_PRO.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
@@ -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; | ||
} | ||
|
@@ -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 | ||
*/ | ||
|
@@ -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 | ||
|
@@ -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(); | ||
|
@@ -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--> | ||
|
@@ -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( | ||
|
@@ -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( | ||
|
@@ -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( | ||
|
@@ -365,7 +365,7 @@ public function receipt_page( $order ) { | |
} | ||
|
||
/** | ||
* Check for Razer Merchant Services Response | ||
* Check for Fiuu Response | ||
* | ||
* @access public | ||
* @return void | ||
|
@@ -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" ); | ||
} | ||
} | ||
|
||
|
@@ -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§ion=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§ion=wc_molpay_gateway">', '</a>' ) . '</p>'; | ||
$message .= '</div>'; | ||
echo $message; | ||
} | ||
|
@@ -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§ion=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§ion=wc_molpay_gateway">', '</a>' ) . '</p>'; | ||
$message .= '</div>'; | ||
echo $message; | ||
} | ||
|
@@ -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§ion=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§ion=wc_molpay_gateway">', '</a>' ) . '</p>'; | ||
$message .= '</div>'; | ||
echo $message; | ||
} | ||
|
@@ -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§ion=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§ion=wc_molpay_gateway">', '</a>' ) . '</p>'; | ||
$message .= '</div>'; | ||
echo $message; | ||
} | ||
|
@@ -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 | ||
|
@@ -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)]; | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.