@rnw-community/react-native-payments 0.54.6 → 0.54.7

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/ios/Payments.h CHANGED
@@ -1,21 +1,18 @@
1
1
  #import <UIKit/UIKit.h>
2
2
  #import <PassKit/PassKit.h>
3
3
 
4
- #import <React/RCTBridgeModule.h>
5
- #import <React/RCTEventEmitter.h>
6
4
  #import <React/RCTUtils.h>
7
5
 
8
6
  #ifdef RCT_NEW_ARCH_ENABLED
9
7
  #import "RNPaymentsSpec.h"
10
8
 
11
- // Should we use https://developer.apple.com/documentation/passkit/pkpaymentauthorizationcontroller?changes=latest_major&language=objc
12
- // As it will support watchOS?
13
9
  @interface Payments : NSObject<NativePaymentsSpec, PKPaymentAuthorizationViewControllerDelegate>
14
10
 
15
11
  #else
12
+
16
13
  #import <React/RCTBridgeModule.h>
14
+ @interface Payments : NSObject<RCTBridgeModule, PKPaymentAuthorizationViewControllerDelegate>
17
15
 
18
- @interface Payments : RCTEventEmitter<RCTBridgeModule, PKPaymentAuthorizationViewControllerDelegate>
19
16
  #endif
20
17
 
21
18
  @property (nonatomic, strong) PKPaymentAuthorizationViewController * _Nullable viewController;
package/ios/Payments.mm CHANGED
@@ -1,7 +1,9 @@
1
1
  #import "Payments.h"
2
+
2
3
  #import <objc/runtime.h>
4
+ #import <React/RCTLog.h>
3
5
 
4
- // TODO: Rewrite according to recent docs https://developer.apple.com/documentation/passkit/apple_pay/offering_apple_pay_in_your_app?language=objc
6
+ // TODO: Add logs
5
7
  @implementation Payments
6
8
 
7
9
  RCT_EXPORT_MODULE()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rnw-community/react-native-payments",
3
- "version": "0.54.6",
3
+ "version": "0.54.7",
4
4
  "description": "React Native Payments",
5
5
  "keywords": [
6
6
  "react",
@@ -71,7 +71,7 @@
71
71
  "build:android": "cd example/android && ./gradlew assembleDebug --no-daemon --console=plain -PreactNativeArchitectures=arm64-v8a",
72
72
  "build:ios": "cd example/ios && xcodebuild -workspace PaymentsExample.xcworkspace -scheme PaymentsExample -configuration Debug -sdk iphonesimulator CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ GCC_OPTIMIZATION_LEVEL=0 GCC_PRECOMPILE_PREFIX_HEADER=YES ASSETCATALOG_COMPILER_OPTIMIZATION=time DEBUG_INFORMATION_FORMAT=dwarf COMPILER_INDEX_STORE_ENABLE=NO"
73
73
  },
74
- "gitHead": "56e39993dda44994d93eed59b8dd39fa1cf17d17",
74
+ "gitHead": "d427b65c092e3858951b13a50da78f011a90355d",
75
75
  "dependencies": {
76
76
  "react-native-uuid": "^2.0.1",
77
77
  "validator": "^13.9.0"
package/readme.md CHANGED
@@ -78,6 +78,8 @@ dependencies {
78
78
  implementation 'com.google.android.gms:play-services-wallet:19.2.0'
79
79
  ```
80
80
 
81
+ - Your google account that are you using for testing should be added to [Google Pay API Test Cards Allowlist](https://groups.google.com/g/googlepay-test-mode-stub-data?pli=1)
82
+
81
83
  ## Usage
82
84
 
83
85
  Detailed guide should be found at: