paypal module iphone development
Hi all,
I want to develop a module to use the paypal mobile payments iphone library in Titanium applications for the iphone.
The method to get the paybal UIButton requires you to reference the UIViewController of your module. It is unclear to me how to access this controller.
Any help would be greatly appreciated.
Thanks
Filip
** ps : I actually solved this, see my reply further on.
3 Answers
-
Im sure your app will be rejected if you build something with PayPal in your app.
This will happen due to Apple's new App Store Review Guidelines
11.2 Apps utilizing a system other than the In App Purchase API (IAP) to purchase content, functionality, or services in an app will be rejected
-
I now used a trick from another post : I've created a UIViewController, added the paypal button etc and called this controller from my TiView with
myUIViewController *myController =[[myUIViewController alloc] init];
[[TiApp app] showModalController:myController animated:TRUE];
All that is left is to implement the delegate methods of the paypal library and deal with the results in javascript.
-
@flip_mertens
Did you take your chances at writing this? I am trying to add payments to my application and I would love to have the PayPal library to make payments.
Any help will be greatly appreciated.
Thanks,
arun