PayPal Mobile Payments Library - Libraries do not communicate with the app - ios

I am developing an application using the PayPal API. It is a simple application with one button that executes a simple payment. I have a sandbox account and I can see there that the payment has been carried out correctly.
But the problem is that within the application, I am not able to receive any response. Methods like paymentSuccessWithKey:, paymentFailedWithCorrelationID:, paymentCanceled: or paymentLibraryExit: are not executed in the code.

Thats the solution:
The problem was that I was not using the PayPal button. The app works properly when you insert this:
[self addLabelWithText:#"Simple Payment" andButtonWithType:BUTTON_294x43 withAction:#selector(pay:)];

Related

parse.com sending transaction emails

I want to send an email whenever someone makes a purchase in my ios App. What is the code to be able to do so?
I tried following the instructions here:
https://www.parse.com/questions/sending-email-with-mandrill-on-ios
but the first part does not make sense. Where do we put the javascript code?
Another requirement - I want to be able to change the email text whenever without releasing an app upgrade.
You put the JavaScript in your back-end web server hosted using the CloudKit APIs at parse.com: Parse JavaScript API. From your question, I'm presuming the back-end will send the email.
If the Parse back-end sends the email, there's no need to push an App Store update to your iOS app to change the email. You may, however, need to push an update to your Parse CloudKit app, depending upon how you've designed the back end.

Mobile Number Verification with Missed Call in iOS

I don't know this question is a good question or dumb question, but I research on SO from last 3 days, only this link I am able to see. And in this link I am not getting any solution for my Issue.
My question is How to verify my mobile number with a missed call. I got from some answer, have to use "Dial2Verify" API. But no one can said "How to use that API" in iOS mobile application through coding. I follow Dial2Verify site for more information, but its only for PHP developer.
My requirement is: I have a call button on my app screen, when I pressed that button, that method will call to Dial2Verify API, And give a missed call to Dial2Verify API and after register Dial2Verify will send that API key/ Mobile number to my App Server, Then App server will check the mobile number is registered or not, if register then it directly go to Home page off App otherwise stay on that Login page.
I would suggest use of mOTP API. (MOTP.in )
Again a service by dial2verify, but it is more suitable for app integration as it supports 200+ countries.
A clever alternative to SMS otp.
At the core it's a 2 step process.
1 sending mOTP : you would be required to call a remote URL from app ( which would send missed call otp to end user )
Step 2: you are required to call another URL from app to cross check otp entered by user.
There is a flow demo available on mOTP website.
Do share the code you build so others can be benefited.
You can probably use a service like https://checkmobi.com/ . Basically they have available 4 validations methods: SMS, IVR, Missed call (the one you need) and another one called CLI.
You can check how each method is working here: https://checkmobi.com/documentation.html#/overview
Also they have available a iOS and Android SDK for mobiles and quite good pricing model for startups.

PayPal iOS simulator app accepts invalid passwords

I am working on integrating the PayPal SDK into an iOS app. I created a sandbox account, got a client id, etc... The didCompletePayment method gets successfully called, and everything appears to look good with the results that I output via the description method on the returned object. However, when I went to the Developer Portal on PayPal to look for a recent Notification of the Sandbox transaction, it wasn't there. My primary question is... why would everything appear to be successful, but it not show up in the Developer portal with a notification of the payment? (On a side-note, I made a similar app for Android, and it does show up there.) Is there something I can do to track down what might be wrong? One detail I noticed in the description data that was outputted to the console, is a response.id being "pay-nonetworkpayidexample123". Would that have anything to do with this?
In addition, I noticed that the when Logging in to PayPal in my app to make the sandbox payment, it accepts ANY password. That seems like a problem. Would that have something to do with this as well?
You are probably using the no-network preconnect. See if you find this call:
[PayPalMobile preconnectWithEnvironment:PayPalEnvironmentNoNetwork];
And change for this:
[PayPalMobile preconnectWithEnvironment:PayPalEnvironmentSandbox];

IOS Paypal MPL reinitialization issue

I'm using Paypal's MPL Framework and all works fine. I have a requirement to change the Paypal application id dynamically (application works with different ids based on user prefs). I'm initializing the Paypal on my main page to follow Paypal documentation.
I was wondering if I can reinitialize paypal if user changed to a different setting?!
I tried calling the [PayPal initializeWithAppID:appKey forEnvironment:e]; more than once but it seems only first key/call is effective. The calls after the Paypal is initialized i simply ignored.
The only option is to ask user to kill the application and run it again which is annoying at the best.
Help is appreciated as usual.

How to use Apple (in app purchases) in UIWebView?

Is there any way to use Apple In App purchases from a UIWebView inside the application ?
Since i want to use a web view to load an external website and use in app purchases as payement method inside the app.
You can call Objective-C methods from UIWebView. This you can do by trapping your custom urls in the shouldStartLoadWithRequest: method. As well, you can call JS methods in HTML from Objective-C code (stringByEvaluatingJavaScriptFromString:). Details are here.
I think it is possible to use Apple's InApp purchase from inside UIWebView, though it depends on your exact requirements. As long as you use Apple's payment gateway (so that they get their 30% cut :)) it's okay.
I don't think it works that way. It's a Cocoa touch API and has to be called from a Cocoa object / controller.
It also uses delegates to communicate back with your app.
Also sounds like what you are trying to do is use the in app purchase as your payment system for a web app. Might be outside the terms of service of AppStore.
Try Google In App Payments?

Resources