我正在尝试将paypal与iphone集成我得到与移动支付库的.o文件相关的错误..想知道将paypal与iphone整合的完整程序。我正在尝试为paypal编码
- (void)viewDidLoad
{
[super viewDidLoad];
[PayPal initializeWithAppID:@"APP-80W284485P519543T" forEnvironment:ENV_SANDBOX];
}
-(IBAction)payPal:(id)sender
{
PayPal *payObject=[PayPal getInstance];
PayPalPayment *obj=[[PayPalPayment alloc]init];
obj.recipient=@"priyankasaroha@gmail.com";
obj.paymentCurrency=@"USD";
obj.description=@"Teddy Bear";
obj.merchantName=@"Priyanka";
obj.subTotal = [NSDecimalNumber decimalNumberWithString:@"10"];
[payObject checkoutWithPayment:obj];
}