@jimrising/easymerchantsdk-react-native 1.5.9 → 1.6.0
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.
- package/README.md +26 -26
- package/ios/Classes/EasyMerchantSdk.m +2 -2
- package/ios/easymerchantsdk.podspec +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ To add the path of sdk in your project. Open your `package.json` file and inside
|
|
|
7
7
|
|
|
8
8
|
```json
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@jimrising/easymerchantsdk-react-native": "^1.
|
|
10
|
+
"@jimrising/easymerchantsdk-react-native": "^1.6.0"
|
|
11
11
|
},
|
|
12
12
|
```
|
|
13
13
|
|
|
@@ -174,12 +174,12 @@ const App = () => {
|
|
|
174
174
|
setLoading(true);
|
|
175
175
|
|
|
176
176
|
if (Platform.OS === 'android') {
|
|
177
|
-
|
|
177
|
+
const config = {
|
|
178
178
|
amount,
|
|
179
|
-
apiKey: 'apiKey',
|
|
180
|
-
secretKey: 'secretKey',
|
|
179
|
+
apiKey: 'apiKey', // replace with your apiKey
|
|
180
|
+
secretKey: 'secretKey', // replace with your secretKey
|
|
181
181
|
jsonConfig: {
|
|
182
|
-
environment: '
|
|
182
|
+
environment: 'sandbox',
|
|
183
183
|
amount,
|
|
184
184
|
tokenOnly: false,
|
|
185
185
|
currency: 'usd',
|
|
@@ -191,9 +191,9 @@ const App = () => {
|
|
|
191
191
|
showDonate: false,
|
|
192
192
|
showTotal: true,
|
|
193
193
|
showSubmitButton: true,
|
|
194
|
-
|
|
195
|
-
email: '
|
|
196
|
-
name: '
|
|
194
|
+
paymentMethod: ['card','ach'],
|
|
195
|
+
email: '', add your email
|
|
196
|
+
name: '', add your name
|
|
197
197
|
fields: {
|
|
198
198
|
visibility: { billing: false, additional: false },
|
|
199
199
|
billing: [
|
|
@@ -216,7 +216,7 @@ const App = () => {
|
|
|
216
216
|
allowCycles: 2,
|
|
217
217
|
intervals: ['Weekly', 'Monthly'],
|
|
218
218
|
recurringStartType: 'Custom',
|
|
219
|
-
recurringStartDate: '
|
|
219
|
+
recurringStartDate: '31/12/2026',
|
|
220
220
|
},
|
|
221
221
|
},
|
|
222
222
|
grailPayParams: {
|
|
@@ -227,23 +227,23 @@ const App = () => {
|
|
|
227
227
|
finderSubtitle: 'Search for your bank',
|
|
228
228
|
searchPlaceholder: 'Enter bank name',
|
|
229
229
|
},
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
230
|
+
appearanceSettings: {
|
|
231
|
+
theme: 'dark',
|
|
232
|
+
bodyBackgroundColor: '#121212',
|
|
233
|
+
containerBackgroundColor: '#1E1E1E',
|
|
234
|
+
primaryFontColor: '#FFFFFF',
|
|
235
|
+
secondaryFontColor: '#B0B0B0',
|
|
236
|
+
primaryButtonBackgroundColor: '#2563EB',
|
|
237
|
+
primaryButtonHoverColor: '#1D4ED8',
|
|
238
|
+
primaryButtonFontColor: '#FFFFFF',
|
|
239
|
+
secondaryButtonBackgroundColor: '#374151',
|
|
240
|
+
secondaryButtonHoverColor: '#4B5563',
|
|
241
|
+
secondaryButtonFontColor: '#E5E7EB',
|
|
242
|
+
borderRadius: '8',
|
|
243
|
+
fontSize: '14',
|
|
244
|
+
fontWeight: '500',
|
|
245
|
+
fontFamily: 'Inter, sans-serif'
|
|
246
|
+
}
|
|
247
247
|
},
|
|
248
248
|
};
|
|
249
249
|
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
#import <React/RCTLog.h>
|
|
3
3
|
#import <React/RCTBridgeModule.h>
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
//#import <easymerchantsdk-Swift.h>
|
|
6
|
+
#import <easymerchantsdk/easymerchantsdk-Swift.h>
|
|
7
7
|
|
|
8
8
|
@interface EasyMerchantSdk ()
|
|
9
9
|
@property (nonatomic, strong) EasyMerchantSdkPlugin *sdkPluginInstance;
|