paytabs_pt2 2.0.7 → 2.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/paytabs-nodejs-package.iml" filepath="$PROJECT_DIR$/.idea/paytabs-nodejs-package.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="WEB_MODULE" version="4">
3
+ <component name="NewModuleRootManager">
4
+ <content url="file://$MODULE_DIR$" />
5
+ <orderEntry type="inheritedJdk" />
6
+ <orderEntry type="sourceFolder" forTests="false" />
7
+ </component>
8
+ </module>
package/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
+ </component>
6
+ </project>
package/README.md CHANGED
@@ -24,7 +24,7 @@ This module requires
24
24
  INSTALLATION
25
25
  ------------
26
26
  * Install Via NPM:
27
- - npm i paytabs_pt2
27
+ - npm install @paytabscom/paytabs-nodejs@2.0.9
28
28
 
29
29
  * Github Repo Link:
30
30
  - https://github.com/paytabscom/paytabs-nodejs-package
@@ -111,11 +111,13 @@ EXAMPLES
111
111
 
112
112
 
113
113
  * important notes:
114
+
114
115
  -Make sure that your website currency is as same as your currency in payTabs profile.
115
116
  -Make sure that you send the region as the syntax below:
117
+
116
118
  Send ARE if your region is United Arab Emirates.
117
119
  Send SAU if your region is Saudi Arabia.
118
120
  Send OMN if your region is Oman.
119
121
  Send JOR if your region is Jordan
120
122
  Send EGY if your region is Egypt
121
- Send GLOBAL if your region is Global
123
+ Send GLOBAL if your region is Global
package/main.js CHANGED
@@ -71,7 +71,7 @@ exports.queryTransaction = (transaction,cart,callback)=>{
71
71
  cart = {'cart_id':cart[0],'cart_currency':cart[1],'cart_amount': parseFloat(cart[2]),'cart_description':cart[3]};
72
72
  data = {
73
73
  'profile_id':config.merchantId,
74
- 'tran_ref':transaction['tranRef'],
74
+ 'tran_ref':transaction['tran_ref'],
75
75
  "tran_type": transaction['tran_type'],
76
76
  "tran_class": transaction['tran_class'],
77
77
  "cart_id": cart['cart_id'],
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "paytabs_pt2",
3
3
  "description": "PayTabs payment integration with nodejs V10.X",
4
- "version": "2.0.7",
4
+ "version": "2.0.8",
5
5
  "_location": "/paytabs",
6
6
  "author": {
7
7
  "name": "Walaa Elsaeed",