设备上禁用了Paypal MPL登录按钮

我已经遇到了几个类似问题的问题,但找不到任何解决方案。 我已经按照沙盒模式下的步骤进行了操作..在下面的代码后我得到了paypal窗口。

[[PayPal getPayPalInst] checkoutWithPayment:payment]; 

在paypal窗口,我可以使用电子邮件和密码登录。 在提供有效凭据后,它在模拟器上工作但在设备登录按钮上仍然处于禁用状态。

在此处输入图像描述

提前致谢

我能够在那里运行演示示例。 但是当我更改包标识符并检查然后登录按钮未在paypal窗口中启用

现在我发现它对我的特定捆绑标识符的禁用,因为当我使用不同的配置文件及其捆绑标识符工作时。

我们必须注册我们的包标识符吗? 或任何特殊原因。

我使用的是Paypal MPL 2.1.0版。

请仔细检查卖家帐户“sunny.g-faciliator@intelgain.com”(receiverEmail) – 我想它应该是“sunny.g-facilitator@intelgain.com”(“辅导员”中缺少“t”)和这可能会导致问题。

 -(void)ChainPayment { [PayPal getPayPalInst].shippingEnabled = TRUE; //optional, set dynamicAmountUpdateEnabled to TRUE if you want to compute //shipping and tax based on the user's address choice, default: FALSE [PayPal getPayPalInst].dynamicAmountUpdateEnabled = FALSE; //optional, choose who pays the fee, default: FEEPAYER_EACHRECEIVER [PayPal getPayPalInst].feePayer = FEEPAYER_EACHRECEIVER; //for a payment with multiple recipients, use a PayPalAdvancedPayment object PayPalAdvancedPayment *payment = [[PayPalAdvancedPayment alloc] init] ; payment.paymentCurrency = @"USD"; //receiverPaymentDetails is a list of PPReceiverPaymentDetails objects payment.receiverPaymentDetails = [NSMutableArray array]; //NSArray *nameArray = [NSArray arrayWithObjects:@"Frank's", @"Robert's", @"Julie's",nil]; for (int i = 1; i <= 2; i++) { PayPalReceiverPaymentDetails *details = [[PayPalReceiverPaymentDetails alloc] init]; details.description = @"Bear Components"; if(i==1) { details.recipient =[[[_emailDictionary valueForKey:@"secondary"] valueForKey:@"1"] valueForKey:@"email"];//[NSString stringWithFormat:@"example-merchant-%d@paypal.com", 4 - i]; } if(i==2) { details.recipient =[[_emailDictionary valueForKey:@"primary"] valueForKey:@"email"];// [NSString stringWithFormat:@"example-merchant-%d@paypal.com", 4 - i]; } details.merchantName = [NSString stringWithFormat:@"merchant name"]; /*unsigned long long order, tax, shipping; order = i * 100; tax = 0.0; shipping =0.0; primary = { email = "m,b@rew.com"; "first_name" = aj; "last_name" = Shar; plan = Free; "profit_percent" = 68; "reffer_from" = ""; }; secondary = { 1 = { email = "pushnd@gmail.com"; "profit_percent" = 32; }; }; } //subtotal of all items for this recipient, without tax and shipping details.subTotal = [NSDecimalNumber decimalNumberWithMantissa:order exponent:-2 isNegative:FALSE]; //invoiceData is a PayPalInvoiceData object which contains tax, shipping, and a list of PayPalInvoiceItem objects details.invoiceData = [[PayPalInvoiceData alloc] init]; details.invoiceData.totalShipping = [NSDecimalNumber decimalNumberWithMantissa:shipping exponent:-2 isNegative:FALSE]; details.invoiceData.totalTax = [NSDecimalNumber decimalNumberWithMantissa:tax exponent:-2 isNegative:FALSE]; //invoiceItems is a list of PayPalInvoiceItem objects //NOTE: sum of totalPrice for all items must equal details.subTotal //NOTE: example only shows a single item, but you can have more than one details.invoiceData.invoiceItems = [NSMutableArray array]; PayPalInvoiceItem *item = [[PayPalInvoiceItem alloc] init]; NSDecimalNumber *number = [NSDecimalNumber decimalNumberWithString:_price]; details.subTotal=number; item.totalPrice = details.subTotal; item.name = @"Audio"; [details.invoiceData.invoiceItems addObject:item];*/ //the only difference between setting up a chained payment and setting //up a parallel payment is that the chained payment must have a single //primary receiver. the subTotal + totalTax + totalShipping of the //primary receiver must be greater than or equal to the sum of //payments being made to all other receivers, because the payment is //being made to the primary receiver, then the secondary receivers are //paid by the primary receiver. if (i == 2) { details.isPrimary = TRUE; details.merchantName = [NSString stringWithFormat:@"mercahnt name or app name"]; NSDecimalNumber *number = [NSDecimalNumber decimalNumberWithString:_price]; details.subTotal=number; } else { float secondaryPrice=[_price floatValue]; secondaryPrice=(secondaryPrice*[[[[_emailDictionary valueForKey:@"secondary"] valueForKey:@"1"] valueForKey:@"profit_percent"] integerValue])/100; NSNumberFormatter *fmt = [[NSNumberFormatter alloc] init]; [fmt setMaximumFractionDigits:2]; NSString *stringPrice=[fmt stringFromNumber:[NSNumber numberWithFloat:secondaryPrice]]; NSDecimalNumber *number = [NSDecimalNumber decimalNumberWithString:stringPrice]; details.subTotal=number; } [payment.receiverPaymentDetails addObject:details]; } [[PayPal getPayPalInst] advancedCheckoutWithPayment:payment]; }