我想在我的项目中实现 Paypal 支付网关,但是在连续执行以下 IBAction 3 次或更多次后显示 paypal 登录窗口,请告诉我以下代码有什么问题
-(IBAction)initializePaypal:(id)sender
{
[PayPal initializeWithAppID:@"APP-80W284485P519543T"forEnvironment:ENV_SANDBOX];
status = PAYMENTSTATUS_CANCELED;
[PayPal getPayPalInst].shippingEnabled = FALSE;
[PayPal getPayPalInst].dynamicAmountUpdateEnabled = FALSE;
//for a payment with a single recipient, use a PayPalPayment object
payment = [[PayPalPayment alloc] init] ;
payment.recipient = payPalValue.merchantEmail;
payment.paymentCurrency = payPalValue.currencyCode;
payment.description = payPalValue.itemName;
payment.merchantName = @"By Post";
payment.subTotal = payPalValue.amount;
[[PayPal getPayPalInst] checkoutWithPayment:payment];
}