我在项目中使用了适用于iOS的接受SDK,并且在EXC_BAD_ACCESS
中崩溃了AcceptSDKHandler *handler = [[AcceptSDKHandler alloc] initWithEnvironment:AcceptSDKEnvironmentENV_TEST];
AcceptSDKRequest *request = [[AcceptSDKRequest alloc] init];
request.merchantAuthentication.name = @""; //name
request.merchantAuthentication.clientKey = @""; //clientkey
request.securePaymentContainerRequest.webCheckOutDataType.token.cardNumber = @""; //cardnumber
request.securePaymentContainerRequest.webCheckOutDataType.token.expirationMonth = @"";
request.securePaymentContainerRequest.webCheckOutDataType.token.expirationYear = @"";
request.securePaymentContainerRequest.webCheckOutDataType.token.cardCode = @"";
//crashing on below line
**[handler getTokenWithRequest:request successHandler:^(AcceptSDKTokenResponse * _Nonnull token)** {
NSLog(@"success %@", token.getOpaqueData.getDataValue);
} failureHandler:^(AcceptSDKErrorResponse * _Nonnull error) {
NSLog(@"failed... );
}];