@jimrising/easymerchantsdk-react-native 1.2.2 → 1.2.3

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 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.2.2"
10
+ "@jimrising/easymerchantsdk-react-native": "^1.2.3"
11
11
  },
12
12
  ```
13
13
 
@@ -1,32 +1,39 @@
1
1
  #import "EasyMerchantSdk.h"
2
2
  #import <React/RCTLog.h>
3
3
  #import <React/RCTBridgeModule.h>
4
- #import <easymerchantsdk/easymerchantsdk-Swift.h>
4
+ #import <easymerchantsdk-Swift.h>
5
5
 
6
6
  @implementation EasyMerchantSdk
7
7
 
8
8
  RCT_EXPORT_MODULE()
9
9
 
10
- RCT_EXTERN_METHOD(
11
- billing:
12
- (NSString *)amount
13
- billingInfo:(NSString *)billingInfo
14
- paymentMethods:(NSArray *)paymentMethods
15
- themeConfiguration:(NSDictionary *)themeConfiguration
16
- tokenOnly:(BOOL)tokenOnly
17
- saveCard:(BOOL)saveCard
18
- saveAccount:(BOOL)saveAccount
19
- resolver:(RCTPromiseResolveBlock)resolve
20
- rejecter:(RCTPromiseRejectBlock)reject
10
+ RCT_EXPORT_METHOD(
11
+ billing:(NSString *)amount
12
+ billingInfo:(NSString *)billingInfo
13
+ paymentMethods:(NSArray *)paymentMethods
14
+ themeConfiguration:(NSDictionary *)themeConfiguration
15
+ tokenOnly:(BOOL)tokenOnly
16
+ saveCard:(BOOL)saveCard
17
+ saveAccount:(BOOL)saveAccount
18
+ resolver:(RCTPromiseResolveBlock)resolve
19
+ rejecter:(RCTPromiseRejectBlock)reject
21
20
  )
22
21
  {
23
22
  EasyMerchantSdkPlugin *sdkPlugin = [[EasyMerchantSdkPlugin alloc] init];
24
23
 
25
- [sdkPlugin billing:amount billinginfo:billingInfo resolver:resolve rejecter:reject];
24
+ [sdkPlugin billing:amount
25
+ billinginfo:billingInfo
26
+ paymentMethods:paymentMethods
27
+ themeConfiguration:themeConfiguration
28
+ tokenOnly:tokenOnly
29
+ saveCard:saveCard
30
+ saveAccount:saveAccount
31
+ resolver:resolve
32
+ rejecter:reject];
26
33
  }
27
34
 
28
-
29
- RCT_EXPORT_METHOD(setViewController:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject)
35
+ RCT_EXPORT_METHOD(setViewController:(RCTPromiseResolveBlock)resolve
36
+ rejecter:(RCTPromiseRejectBlock)reject)
30
37
  {
31
38
  UIViewController *rootViewController = [UIApplication sharedApplication].delegate.window.rootViewController;
32
39
  EasyMerchantSdkPlugin *sdkPlugin = [[EasyMerchantSdkPlugin alloc] init];
@@ -1,6 +1,6 @@
1
1
  Pod::Spec.new do |s|
2
2
  s.name = 'easymerchantsdk'
3
- s.version = '1.2.2'
3
+ s.version = '1.2.3'
4
4
  s.summary = 'A React Native SDK for Easy Merchant.'
5
5
  s.description = <<-DESC
6
6
  A React Native SDK to enable Easy Merchant functionality in mobile applications.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jimrising/easymerchantsdk-react-native",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {