贝宝API:如何将其整合到我的应用程序? IOS5

我一直在检查PayPal API,并得到这个,一个WebView显示一个相当不错的界面,通过贝宝支付,事情是:我不知道如何修改它,以显示几个项目(此示例只涉及一个)并显示在应用程序(如果你已经使用它,你可能已经意识到它只说“目前购买”,我认为这是不够的)。

我一直在使用testing账户作为买家,但在现实生活中,我怎样才能将钱存入我的账户? 我的意思是,如果你看到代码和应用程​​序,它说谁支付和相对多less,但它并没有说谁在哪里。

请,如果有人知道这件事帮助我。

PD:没有一个好的教程,这是一个耻辱。

来自PayPal的样本:

(在我的ViewController中):

(void) loadView { [super loadView]; UIWebView *aWebView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 00, 320,450)]; aWebView.scalesPageToFit = YES; [aWebView setDelegate:self]; NSString *item = @"Gum"; NSInteger amount = 1; NSString *itemParameter = @"itemName="; itemParameter = [itemParameter stringByAppendingString:item]; NSString *amountParameter = @"amount="; amountParameter = [amountParameter stringByAppendingFormat:@"%d",amount]; NSString *urlString = @"http://haifa.baluyos.net/dev/PayPal/SetExpressCheckout.php?"; urlString = [urlString stringByAppendingString:amountParameter]; urlString = [urlString stringByAppendingString:@"&"]; urlString = [urlString stringByAppendingString:itemParameter]; //Create a URL object. NSURL *url = [NSURL URLWithString:urlString]; //URL Requst Object NSURLRequest *requestObj = [NSURLRequest requestWithURL:url]; //load the URL into the web view. [aWebView loadRequest:requestObj]; //[self.view addSubview:myLabel]; [self.view addSubview:aWebView]; [aWebView release]; } 

我已经通过他们的MPL库在我的应用程序中整合了PayPal,我发现这是最有趣的。 看来我没有意识到PayPal网站(虽然我仍然觉得很困惑)。

MPL – >简单付款应用程序 – >复制和粘贴 – >修改它 – >工作精美。

如果有人像我一样迷路(而且)让我知道并且会发布一些代码。

谢谢