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.
Related
I've been trying to implement 3D secure payments in my iOS app for a few days now and feel completely lost. Even though the SDK integrates this functionality, there seems to be very few mentions to it in the docs and even less on the forums out here.
I followed what's explained here in the official stripe docs:
https://stripe.com/docs/sources/three-d-secure
https://stripe.com/docs/mobile/ios/sources
and also on this tutorial:
https://www.hitchhq.com/stripe/activities/591b075c9659a6263d0ccd0e
But still couldn't get how to proceed exactly. Small precision, I was until now using tokens to charge my users and it works on production, but I now have to use sources for threedsecure.
Until now I've managed to show the confirmation view (both the test one or the one from my bank on production) and authorize the payment. But then I am always prompted a blank view only containing an ugly blue button saying "Go back to MyApp". I don't understand that, this is ugly and useless, and I guess I'm doing something wrong so that I get this right ? I would expect to be redirected to my app right after the user confirms his credit card.
Then, when the user authorized the credit card, I'm back in my app, and the docs say I have to call startPollingSource on the iOS side which will act as a hook to inform me when the charge is complete. On my server I should also implement a webhook which will get notified when the card is authorized and confirm the charge.
There I am completely confused, why can't I just send the source_id to my server and confirm the charge through this one simple call ? This double-hooks workflow makes no sense to me ..
Here I am, this doesn't work, and I guess I missed something somewhere here.
My advice is to not try to implement stripe from scratch.Even though the integration is not that hard,they miss a lot of things in the documentation.
Better work on this sample project from their repo
https://github.com/stripe/stripe-ios
I need to make PayPal show in model, when user presses it's button, right now it just open new tab, which is not great UX.
Didn't find that in documentation
I am a developer at Braintree.
Let me know if you have any other questions at support#braintreepayments.com
Braintree's Pay with PayPal integration will always force a pop-up window hosted on a PayPal domain in all the environments and browsers that support it. This means that you cannot make PayPal appear in a modal; whether it does or not will be decided based on the browser you are using. The reason for this is that it provides a higher level of verifiability if you can see the PayPal domain name in your browser's location bar.
The Braintree docs will be updated to reflect this.
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.
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];
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:)];