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....

4 Answers 4

0

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

5
  • thank you, so i assume that using paypal as "native" payment its ok for both. will try it
    – zhares
    Jul 21, 2011 at 14:20
  • stackoverflow.com/questions/4036494/…, See this link it is helpful
    – Abhi
    Jul 21, 2011 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, 2011 at 8:05
  • try this link, stackoverflow.com/questions/3587060/… need sandbox account as test account to test the paypal integration
    – Abhi
    Jul 23, 2011 at 6:22
  • simple answer for simple question. :-) Mar 4, 2015 at 11:57
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

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 = @"[email protected]";//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.

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.