Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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.

— asked September 23rd 2010 by filip mertens
  • iphone
  • mobile
  • module
  • paypal
  • uiviewcontroller
  • xcode
0 Comments

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
    
    — answered September 24th 2010 by Seb S.
    permalink
    2 Comments
    • Actually it has been approved by Apple and I know at least one application that uses it, I'm sure there are a lot more out there. Paypal released at static library especially for Iphone ( & android ). The procedure is however you have to let Paypal approve your application too :D
      http://thenextweb.com/mobile/2010/04/24/paypal-offer-app-purchases-iphone-android/

      — commented September 24th 2010 by filip mertens
    • Okay without workarounds this should work (via InApp Purchase) :-)

      — commented September 24th 2010 by Seb S.
  • 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.

    — answered September 24th 2010 by filip mertens
    permalink
    0 Comments
  • @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

    — answered September 25th 2010 by Arun Sivaraman
    permalink
    2 Comments
    • yes I did, it's not finished though. I'll post the code when it's done and working ;)

      — commented September 26th 2010 by filip mertens
    • Hey Filip,
      Did you finish the paypal integration yet? Was it approved by apple? Any help for others trying to create similar integration?
      Thanks.

      — commented August 23rd 2011 by General Usage
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.