简体   繁体   English

paypal 集成 android 和 iOS,可能吗?

[英]paypal integration for android and iOS, possible?

in our apps, (versions for both OS), we want to allow the user to pay for subscription.在我们的应用程序(两个操作系统的版本)中,我们希望允许用户为订阅付费。 my app is being developed in Titanium for iOS, and native for android.我的应用程序正在 Titanium 中为 iOS 开发,而原生应用程序为 android。

can i integrate paypal payments from them??我可以整合他们的 paypal 付款吗? is posible?有可能吗?

or the solutions is redirect to a web-app (in safari mobile) to make payment, and then redirect to app??或者解决方案是重定向到网络应用程序(在 safari 移动设备中)进行支付,然后重定向到应用程序? i dont know if we can implement this as a "native" experience, using titanium+addons and paypal mobile sdk api.我不知道我们是否可以将其实现为“原生”体验,使用钛+插件和 paypal 移动 sdk api。

if someone have experience, please show me some light....如果有人有经验,请给我一些光....

Using anything apart from Google Wallet as an in app Payment system on Android is a breach of the Google terms of service, so no在 Android 上使用 Google Wallet 以外的任何东西作为应用内支付系统违反了 Google 服务条款,因此不

This is the Resolution for Paypal (Sandbox) Error "589023" in iPhone Application这是 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];
}

Here the total and subtotal and Tax allows only two digits after the.(dot) Ex: (234.xx).这里总和小计和税只允许在.(点)后两位数字:(234.xx)。 So by using the %.2f to work perfectly.因此,通过使用 %.2f 可以完美地工作。

yes, it is possible to integrate PayPal mechanism in iOS.是的,可以在 iOS 中集成 PayPal 机制。 Click here to see code for integrating PayPal in iOS Paypal integration in iOS单击此处查看将 PayPal 集成到 iOS Paypal 集成到 Z1BDF605991920DB14EBZF8508204

Yes,paypal integration is possible in android as well as iPhone.是的,android 和 iPhone 中可以集成 paypal。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM