Skip to content

Commit 9f3be41

Browse files
authored
Merge pull request #28 from shoa48/fixes
Add version and AR translation for CC fields
2 parents 9174d5e + e59a705 commit 9f3be41

File tree

6 files changed

+14
-4
lines changed

6 files changed

+14
-4
lines changed

Moyasar/Mysr/Helper/MoyasarHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ public function moyasarSecretApiKey()
262262

263263
public function buildMoyasarUrl($path)
264264
{
265-
$isStaging = true;
265+
$isStaging = false;
266266
$base = 'https://api.moyasar.com/v1/';
267267

268268
if ($isStaging) {

Moyasar/Mysr/composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
"name": "moyasar/module-mysr",
33
"description": "Magento 2 payment module that integrate with https:\\moyasar.com Gateway",
44
"type": "magento2-module",
5-
"license": "proprietary",
5+
"version": "2.0.1",
66
"authors": [
77
{
88
"email": "[email protected]",
9-
"name": "Moyasar"
9+
"name": "Moyasar Dev Team"
1010
}
1111
],
1212
"minimum-stability": "dev",

Moyasar/Mysr/etc/adminhtml/system.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<label>Title</label>
3131
</field>
3232
<field id="cards_type" translate="label" type="multiselect" sortOrder="50" showInDefault="1"
33-
showInWebsite="1" showInStore="1">
33+
showInWebsite="1" showInStore="1" canRestore="1">
3434
<label>Enable Credit Cards:</label>
3535
<source_model>Moyasar\Mysr\Model\CreditCardType</source_model>
3636
</field>

Moyasar/Mysr/etc/config.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<model>Moyasar\Mysr\Model\Payment\MoyasarCreditCard</model>
88
<order_status>pending_payment</order_status>
99
<title>Credit Card: Mada, Visa, MasterCard</title>
10+
<cards_type>visa,mada,mastercard</cards_type>
1011
<sort_order>1</sort_order>
1112
</moyasar_credit_card>
1213

Moyasar/Mysr/i18n/ar_SA.csv

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,11 @@
88
"Account Mobile Number":"رقم جوال الحساب"
99
"One-Time Password":"كلمة المرور المؤقتة"
1010
"Pay":"ادفع"
11+
"Card Holder Name","اسم حامل البطاقة"
12+
"Credit Card Information","معلومات بطاقة الإئتمان"
13+
"Credit Card Number","رقم البطاقة"
14+
"Card Verification Number","رمز الأمان خلف البطاقة (CVC)"
15+
"Expiration Date","تاريخ انتهاء البطاقة"
16+
"Place Order","إنهاء الطلب"
17+
"Month","الشهر"
18+
"Year","السنة"

Moyasar/Mysr/i18n/en_US.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@
88
"Account Mobile Number":"Account Mobile Number"
99
"One-Time Password":"One-Time Password"
1010
"Pay":"Pay"
11+
"Card Holder Name","Name on card"

0 commit comments

Comments
 (0)