1

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.

can i integrate paypal payments from them?? is posible?

or the solutions is redirect to a web-app (in safari mobile) to make payment, and then redirect to app?? i dont know if we can implement this as a "native" experience, using titanium+addons and paypal mobile sdk api.

if someone have experience, please show me some light....

Avadhani Y
  • 7,566
  • 19
  • 63
  • 90
zhares
  • 11
  • 2

4 Answers4

0

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

Excalibur
  • 467
  • 2
  • 7
  • 15
0

This is the Resolution for Paypal (Sandbox) Error "589023" in iPhone Application

-(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). So by using the %.2f to work perfectly.

Raghav Sood
  • 81,899
  • 22
  • 187
  • 195
YSR fan
  • 705
  • 6
  • 11
0

yes, it is possible to integrate PayPal mechanism in iOS. Click here to see code for integrating PayPal in iOS Paypal integration in iOS

Community
  • 1
  • 1
Himanshu Mahajan
  • 4,779
  • 2
  • 36
  • 29
0

Yes,paypal integration is possible in android as well as iPhone.

Abhi
  • 8,935
  • 7
  • 37
  • 60
  • thank you, so i assume that using paypal as "native" payment its ok for both. will try it – zhares Jul 21 '11 at 14:20
  • http://stackoverflow.com/questions/4036494/how-can-i-integrate-paypal-to-payout-users-when-a-button-is-clicked, See this link it is helpful – Abhi Jul 21 '11 at 14:22
  • thank you!! altough i've read in several forums that apple/google didnt like that we use a different payment method :( maybe i'll give a try... – zhares Jul 22 '11 at 08:05
  • try this link, http://stackoverflow.com/questions/3587060/android-and-paypal-api-integrationu need sandbox account as test account to test the paypal integration – Abhi Jul 23 '11 at 06:22
  • simple answer for simple question. :-) – Gajendra K Chauhan Mar 04 '15 at 11:57