小编Nis*_*sha的帖子

Paypal集成给出错误

嗨,我想整合Paypal服务,但它给出错误

错误:

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-   [PayPalPaymentViewController payPalServiceManager]: unrecocnized selector sent to instance 0x12784450'
Run Code Online (Sandbox Code Playgroud)

代码:

- (IBAction)buttonPaypalAction:(id)sender
{
gateway = @"Paypal";
PayPalPayment *payment = [[PayPalPayment alloc] init];
payment.amount = [[NSDecimalNumber alloc] initWithString:[appDelegate.orderDetails  objectAtIndex:6]];
payment.currencyCode = appDelegate.currencyCode;
payment.shortDescription = @"Food items";

if (!payment.processable) {
    // This particular payment will always be processable. If, for
    // example, the amount was negative or the shortDescription was
    // empty, this payment wouldn't be processable, and you'd want
    // to …
Run Code Online (Sandbox Code Playgroud)

crash paypal ios unrecognized-selector

1
推荐指数
1
解决办法
856
查看次数

标签 统计

crash ×1

ios ×1

paypal ×1

unrecognized-selector ×1