Skip to content

Commit 59e7fce

Browse files
committed
fix: var declaration
1 parent 1e4f6a5 commit 59e7fce

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
node_modules
33
coverage
44
project.xcworkspace
5+
xcuserdata

lib/ios/GatewayManager.m

+2-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ - (void)createBraintreeTokenWithPayment:(PKPayment *_Nonnull)payment
123123
- (void)createCloudPaymentsTokenWithPayment:(PKPayment *)payment completion:(void (^)(NSString * _Nullable, NSError * _Nullable))completion
124124
{
125125
#if __has_include(<SDK-iOS/PKPaymentConverter.h>)
126-
cryptogram *NSString = [PKPaymentConverter convertToString:payment];
126+
NSString *cryptogram = [NSString string];
127+
cryptogram = [PKPaymentConverter convertToString:payment];
127128
if ([cryptogram length] == 0) {
128129
NSDictionary *userInfo = @{
129130
NSLocalizedDescriptionKey: @"Cryptogram creation failed.",

0 commit comments

Comments
 (0)