Skip to content

Commit a6e5d76

Browse files
author
sarahghazali
committed
Update to RMS
1 parent beffa3f commit a6e5d76

7 files changed

Lines changed: 28 additions & 28 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
## v2.0 - Oct 28, 2018
22

3-
- Release MOLPay Normal Integration Plugin for Drupal 9.5.x Commerce 2
3+
- Release Razer Merchant Services Normal Integration Plugin for Drupal 9.5.x Commerce 2

Commerce/drupal_9.5.x /commerce_molpay_normal/commerce_molpay_normal.info.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Commerce Razer Merchant Services Normal v2.0
2+
type: module
3+
description: 'Razer Merchant Services Normal payment gateway for Drupal commerce.'
4+
package: Commerce
5+
dependencies:
6+
- commerce:commerce_payment
7+
8+
version: '9.5.0'
9+
project: 'commerce_razermerchantservices_normal'
10+
datestamp: 1538538851

Commerce/drupal_9.5.x /commerce_molpay_normal/config/schema/commerce_molpay_normal.schema.yml renamed to Commerce/drupal_9.5.x /commerce_razermerchantservices_normal/config/schema/commerce_razermerchantservices_normal.schema.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# config/schema/commerce_molpay_normal.schema.yml
2-
commerce_payment.commerce_payment_gateway.plugin.molpay_normal:
1+
# config/schema/commerce_razermerchantservices_normal.schema.yml
2+
commerce_payment.commerce_payment_gateway.plugin.razermerchantservices_normal:
33
type: commerce_payment_gateway_configuration
44
mapping:
55
merchant_id:

Commerce/drupal_9.5.x /commerce_molpay_normal/src/Plugin/Commerce/PaymentGateway/MOLPayNormal.php renamed to Commerce/drupal_9.5.x /commerce_razermerchantservices_normal/src/Plugin/Commerce/PaymentGateway/RazerMerchantServicesNormal.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
<?php
2-
namespace Drupal\commerce_molpay_normal\Plugin\Commerce\PaymentGateway;
2+
namespace Drupal\commerce_razermerchantservices_normal\Plugin\Commerce\PaymentGateway;
33

44
use Drupal\commerce_order\Entity\OrderInterface;
55
use Drupal\commerce_payment\Plugin\Commerce\PaymentGateway\OffsitePaymentGatewayBase;
66
use Drupal\Core\Form\FormStateInterface;
77
use Symfony\Component\HttpFoundation\Request;
88

99
/**
10-
* Provides the MOLPay Normal Checkout payment gateway.
11-
* @link https://github.com/MOLPay/Drupal_Plugin
10+
* Provides the Razer Merchant Services Normal Checkout payment gateway.
11+
* @link https://github.com/RazerMS/Shopping-Cart-Plugins-RazerMS_Drupal_Commerce_7
1212
*
1313
* @CommercePaymentGateway(
14-
* id = "commerce_molpay_normal",
15-
* label = "MOLPay Normal Payment Gateway",
16-
* display_label = "MOLPay",
14+
* id = "commerce_razermerchantservices_normal",
15+
* label = "Razer Merchant Services Normal Payment Gateway",
16+
* display_label = "Razer Merchant Services",
1717
* forms = {
18-
* "offsite-payment" = "Drupal\commerce_molpay_normal\PluginForm\MOLPayNormalPaymentForm"
18+
* "offsite-payment" = "Drupal\commerce_razermerchantservices_normal\PluginForm\RazerMerchantServicesNormalPaymentForm"
1919
* }
2020
* )
2121
*/
22-
class MOLPayNormal extends OffsitePaymentGatewayBase {
22+
class RazerMerchantServicesNormal extends OffsitePaymentGatewayBase {
2323

2424
/**
2525
* For first time activation, default admin configuration value
@@ -46,23 +46,23 @@ public function buildConfigurationForm(array $form, FormStateInterface $form_sta
4646
$form['merchant_id'] = [
4747
'#type' => 'textfield',
4848
'#title' => $this->t('Merchant ID'),
49-
'#description' => $this->t('Merchant ID can be obtained from MOLPay Support team.'),
49+
'#description' => $this->t('Merchant ID can be obtained from Razer Merchant Services Support team.'),
5050
'#default_value' => $this->configuration['merchant_id'],
5151
'#required' => TRUE,
5252
];
5353

5454
$form['verify_key'] = [
5555
'#type' => 'textfield',
5656
'#title' => $this->t('Verify key'),
57-
'#description' => $this->t('Verify key can be obtained from MOLPay Support team.'),
57+
'#description' => $this->t('Verify key can be obtained from Razer Merchant Services Support team.'),
5858
'#default_value' => $this->configuration['verify_key'],
5959
'#required' => TRUE,
6060
];
6161

6262
$form['secret_key'] = [
6363
'#type' => 'textfield',
6464
'#title' => $this->t('Secret key'),
65-
'#description' => $this->t('Secret key can be obtained from MOLPay Support team.'),
65+
'#description' => $this->t('Secret key can be obtained from Razer Merchant Services Support team.'),
6666
'#default_value' => $this->configuration['secret_key'],
6767
'#required' => TRUE,
6868
];

Commerce/drupal_9.5.x /commerce_molpay_normal/src/PluginForm/MOLPayNormalPaymentForm.php renamed to Commerce/drupal_9.5.x /commerce_razermerchantservices_normal/src/PluginForm/RazerMerchantServicesNormalPaymentForm.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

3-
namespace Drupal\commerce_molpay_normal\PluginForm;
3+
namespace Drupal\commerce_razermerchantservices_normal\PluginForm;
44

55
use Drupal\commerce_payment\PluginForm\PaymentOffsiteForm as BasePaymentOffsiteForm;
66
use Drupal\Core\Form\FormStateInterface;
77

8-
class MOLPayNormalPaymentForm extends BasePaymentOffsiteForm {
8+
class RazerMerchantServicesNormalPaymentForm extends BasePaymentOffsiteForm {
99

1010
/**
1111
* {@inheritdoc}
@@ -15,7 +15,7 @@ public function buildConfigurationForm(array $form, FormStateInterface $form_sta
1515
$countries = \Drupal\Core\Locale\CountryManager::getStandardList();
1616
/** @var \Drupal\commerce_payment\Entity\PaymentInterface $payment */
1717
$payment = $this->entity;
18-
/** @var \Drupal\commerce_molpay_normal\Plugin\Commerce\PaymentGateway\MOLPayNormalInterface $payment_gateway_plugin */
18+
/** @var \Drupal\commerce_razermerchantservices_normal\Plugin\Commerce\PaymentGateway\RazerMerchantServicesNormalInterface $payment_gateway_plugin */
1919
$payment_gateway_plugin = $payment->getPaymentGateway()->getPlugin();
2020
$gateway_configuration = $payment_gateway_plugin->getConfiguration();
2121
$mode = $gateway_configuration['mode'];

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Razer Merchant Services Plugin for Drupal Shopping Cart developed by Razer Merch
1010
Notes
1111
-----
1212

13-
MOLPay Sdn. Bhd. is not responsible for any problems that might arise from the use of this module.
13+
Razer Merchant Services is not responsible for any problems that might arise from the use of this module.
1414
Use at your own risk. Please backup any critical data before proceeding. For any query or
1515
assistance, please email suppor-sa@razer.com
1616

0 commit comments

Comments
 (0)