Paypal iphone一次又一次超时错误
我正在创建一个简单的应用程序,并集成从 添加到项目中后,我只需在ViewController.m中编写几行代码Paypal iphone一次又一次超时错误,iphone,paypal,Iphone,Paypal,我正在创建一个简单的应用程序,并集成从 添加到项目中后,我只需在ViewController.m中编写几行代码 // Implement viewDidLoad to do additional setup after loading the view, typically from a nib. - (void)viewDidLoad { [PayPal initializeWithAppID:@"APP-80W284485P519543T" forEnvironment:ENV_SAND
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
- (void)viewDidLoad {
[PayPal initializeWithAppID:@"APP-80W284485P519543T" forEnvironment:ENV_SANDBOX];
//We have successfully initialized and are ready to pay
UIButton *button = [[PayPal getInstance] getPayButtonWithTarget:self andAction:@selector(payWithPayPal) andButtonType:BUTTON_278x43 andButtonText:BUTTON_TEXT_PAY];
[self.view addSubview:button];
[super viewDidLoad];
}
- (void) payWithPayPal {
NSLog(@"VEER SUTHAR");
PayPal *payObject=[PayPal getInstance];
PayPalPayment *obj=[[PayPalPayment alloc]init];
obj.recipient=@"veer.developer@gmail.com";
obj.paymentCurrency=@"USD";
obj.description=@"Teddy Bear";
obj.merchantName=@"Veer";
obj.subTotal = [NSDecimalNumber decimalNumberWithString:@"10"];
[payObject checkoutWithPayment:obj];
}
我面临两大问题,