pa-sdk-react-native 3.0.2 → 3.0.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.
@@ -77,8 +77,9 @@ public final class PaSdk3ds: NSObject {
77
77
 
78
78
  /// close() — dismiss the challenge after the JS poller observed a terminal
79
79
  /// state; the present() promise resolves with cancelled: false.
80
- @objc(close:)
81
- public func close(_ resolve: @escaping (Any?) -> Void) {
80
+ @objc(close:rejecter:)
81
+ public func close(_ resolve: @escaping (Any?) -> Void,
82
+ rejecter reject: @escaping (NSString?, NSString?, NSError?) -> Void) {
82
83
  DispatchQueue.main.async {
83
84
  PaSdk3ds.dismissActive(animated: true)
84
85
  resolve(nil)
@@ -33,7 +33,8 @@ RCT_EXTERN_METHOD(present:(NSDictionary *)params
33
33
  rejecter:(RCTPromiseRejectBlock)reject)
34
34
 
35
35
  /** Dismiss the challenge after the JS poller observed a terminal state. */
36
- RCT_EXTERN_METHOD(close:(RCTPromiseResolveBlock)resolve)
36
+ RCT_EXTERN_METHOD(close:(RCTPromiseResolveBlock)resolve
37
+ rejecter:(RCTPromiseRejectBlock)reject)
37
38
 
38
39
  /**
39
40
  * App-switch return hook. The app's AppDelegate/SceneDelegate must call this
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pa-sdk-react-native",
3
- "version": "3.0.2",
3
+ "version": "3.0.3",
4
4
  "description": "Payment Asia card payment SDK for React Native — headless card validation, tokenization, payment confirmation with built-in 3D Secure, card saving and multi-market merchant accounts.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",