[英]paypal integration for android and iOS, possible?
在我们的应用程序(两个操作系统的版本)中,我们希望允许用户为订阅付费。 我的应用程序正在 Titanium 中为 iOS 开发,而原生应用程序为 android。
我可以整合他们的 paypal 付款吗? 有可能吗?
或者解决方案是重定向到网络应用程序(在 safari 移动设备中)进行支付,然后重定向到应用程序? 我不知道我们是否可以将其实现为“原生”体验,使用钛+插件和 paypal 移动 sdk api。
如果有人有经验,请给我一些光....
在 Android 上使用 Google Wallet 以外的任何东西作为应用内支付系统违反了 Google 服务条款,因此不
这是 iPhone 应用程序中 Paypal(沙盒)错误“589023”的解决方案
-(void)payWithPayPal{
PayPal *payPal=[PayPal getPayPalInst];
payPal.shippingEnabled = FALSE;
payPal.dynamicAmountUpdateEnabled = NO;
payPal.feePayer = FEEPAYER_EACHRECEIVER;
PayPalPayment *payment = [[[PayPalPayment alloc] init] autorelease];
payment.recipient = @"adn.reddy@witinnovation.com";//mail id of the paypal account
payment.paymentCurrency = @"USD";
payment.description = @"Payment Discription here...";
payment.merchantName =@"Y S Rajashekar Reddy];
payment.invoiceData = [[[PayPalInvoiceData alloc] init] autorelease];
payment.invoiceData.invoiceItems = [NSMutableArray array];
PayPalInvoiceItem *item = [[PayPalInvoiceItem alloc] init];
item.totalPrice=[NSDecimalNumber decimalNumberWithString:[NSString stringWithFormat:@"%.2f", 126.34545]]; // If u give xxx.xx , no need to give the %.2f , u can give directly %f
item.name = @"Any Name";
item.itemId = @"Item ID";
[payment.invoiceData.invoiceItems addObject:item];
[item release];
}
payment.subTotal = [NSDecimalNumber decimalNumberWithString:[NSString stringWithFormat:@"%.2f",126.34545]]; //Total and Subtotal must be equal
payment.invoiceData.totalTax = [NSDecimalNumber decimalNumberWithString:[NSString stringWithFormat:@"%.2f",3.34]];
NSLog(@"Total Tax is :%@",[payment.invoiceData.totalTax stringValue]);
[payPal checkoutWithPayment:payment];
}
这里总和小计和税只允许在.(点)后两位数字:(234.xx)。 因此,通过使用 %.2f 可以完美地工作。
是的,可以在 iOS 中集成 PayPal 机制。 单击此处查看将 PayPal 集成到 iOS Paypal 集成到 Z1BDF605991920DB14EBZF8508204
是的,android 和 iPhone 中可以集成 paypal。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.