We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e4f6a5 commit 59e7fceCopy full SHA for 59e7fce
.gitignore
@@ -2,3 +2,4 @@
2
node_modules
3
coverage
4
project.xcworkspace
5
+xcuserdata
lib/ios/GatewayManager.m
@@ -123,7 +123,8 @@ - (void)createBraintreeTokenWithPayment:(PKPayment *_Nonnull)payment
123
- (void)createCloudPaymentsTokenWithPayment:(PKPayment *)payment completion:(void (^)(NSString * _Nullable, NSError * _Nullable))completion
124
{
125
#if __has_include(<SDK-iOS/PKPaymentConverter.h>)
126
- cryptogram *NSString = [PKPaymentConverter convertToString:payment];
+ NSString *cryptogram = [NSString string];
127
+ cryptogram = [PKPaymentConverter convertToString:payment];
128
if ([cryptogram length] == 0) {
129
NSDictionary *userInfo = @{
130
NSLocalizedDescriptionKey: @"Cryptogram creation failed.",
0 commit comments