【问题标题】:paypal integration for android and iOS, possible?安卓和iOS的paypal集成,可能吗?
【发布时间】:2011-10-10 06:43:15
【问题描述】:

在我们的应用程序(两个操作系统的版本)中,我们希望允许用户为订阅付费。 我的应用是在 iOS 的 Titanium 中开发的,Android 是原生的。

我可以整合他们的贝宝付款吗?有可能吗?

或者解决方案是重定向到网络应用程序(在 safari mobile 中)进行支付,然后重定向到应用程序?? 我不知道我们是否可以使用 Titan+addons 和 paypal mobile sdk api 将其实现为“原生”体验。

如果有人有经验,请给我一些光......

【问题讨论】:

    标签: android ios in-app-purchase paypal


    【解决方案1】:

    是的,可以在 android 和 iPhone 中集成 paypal。

    【讨论】:

    • 谢谢,所以我认为使用贝宝作为“本地”支付对双方都可以。会试试的
    • stackoverflow.com/questions/4036494/…,看这个链接很有帮助
    • 谢谢!!虽然我在几个论坛上读到苹果/谷歌不喜欢我们使用不同的付款方式:(也许我会试一试......
    • 试试这个链接,stackoverflow.com/questions/3587060/…需要沙盒账户作为测试账户来测试paypal集成
    • 简单问题的简单答案。 :-)
    【解决方案2】:

    在 Android 上使用 Google 电子钱包以外的任何东西作为应用内支付系统违反了 Google 服务条款,因此不可以

    【讨论】:

      【解决方案3】:

      这是 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 来完美地工作。

      【讨论】:

        【解决方案4】:

        是的,可以在 iOS 中集成 PayPal 机制。点击这里查看iOS中集成PayPal的代码Paypal integration in iOS

        【讨论】:

          猜你喜欢
          • 2016-04-26
          • 2011-09-19
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2019-12-25
          • 2013-08-18
          • 2014-03-01
          • 2016-01-01
          相关资源
          最近更新 更多