iphone - Zooz Secure In App Payment运行时错误

标签 iphone crash in-app-purchase payment-gateway runtime-error

我正在尝试将ZOOZ集成到应用程序付款中,但在运行时给我错误。它执行我的完整方法,然后使应用程序崩溃。我的方法是这样

-(IBAction)buyMore{
    paymentSuccessLabel.hidden = YES;

    ZooZ * zooz = [ZooZ sharedInstance];

    zooz.sandbox = YES;

    zooz.tintColor = [UIColor colorWithRed:1 green:0.8 blue:0 alpha:1];

    zooz.barButtonTintColor = [UIColor darkGrayColor];

    ZooZPaymentRequest * req = [zooz createPaymentRequestWithTotal:12.1 invoiceRefNumber:@"test invoice ref-1234" delegate:self];

    req.currencyCode = @"EUR";

    req.payerDetails.firstName = @"Some";

    req.payerDetails.email = @"test@zooz.com";

    req.payerDetails.billingAddress.zipCode=@"01234";

    req.requireAddress = NO;

    ZooZInvoiceItem * item = [ZooZInvoiceItem invoiceItem:12.1 quantity:1 name:@"T-Shirt"];
    item.additionalDetails = @"Free 200 characters custom description";
    item.itemId = @"refId-12345678"; // optional

    [req addItem:item];

    req.invoice.additionalDetails = @"Custom invoice description text";

    [zooz openPayment:req forAppKey:@"27edd0b5-7289-4e6a-9dcb-201179701496"];

}

和应用程序登录崩溃是这个
Unknown class ZooZCardViewController in Interface Builder file.
Unknown class ZooZButton in Interface Builder file.
Unknown class ZooZFooterPanel in Interface Builder file.
Unknown class ZooZSpinner in Interface Builder file.
Unknown class ZooZBasePanel in Interface Builder file.
 *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UICustomObject 0x4c12e0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key pageControl.'

请帮助我,我对此感到担心。

最佳答案

似乎您没有正确包含ZooZ SDK库文件。
我建议您首先删除对ZooZ的所有引用。
还要查看目标属性的“框架搜索路径”,并确保那里没有对ZooZ的引用。

然后只需右键单击项目文件,选择添加新文件,然后选择ZooZ.embeededframework文件夹。 (不要标记复制文件复选框),并标记要添加到的所有目标。

ZooZ SDK文档PDF文件中有分步流程,包括屏幕截图。
还要确保在目标的“其他链接器标志”属性中设置“-ObjC”值

关于iphone - Zooz Secure In App Payment运行时错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12895447/

相关文章:

objective-c - 仅当从仪器运行时,iOS应用程序才会崩溃(自动化)

swift - 在应用内购买后启用被阻止的行。编码问题

ios - InAppPurchase 插件无法从 Objective-C 执行 JS 回调

jquery - 无法在 iPhone 应用程序上使用 PhoneGap 和 jQuery 获取 JSON 结果

ios - 为什么 SecItemAdd 返回 -50(无效参数)

crash - NSTimer 错误访问

ios - 在 iOS 应用程序中设置产品价格

带有 Storyboard的 iOS 自定义键盘

iphone - http GET 限制(iPhone)

android - 单击按钮后,Android应用程序崩溃