How can i implement payment with two receivers with PHP as a Webservice will be used in Mobile App?
User will pay from mobile app only with his/her credentials.Payment should be done with Webservice(API's).
Thanks.
I am not completely sure on the integration to a Mobile App (depends what platform etc.). Are you set on an actual app? Or would you be ok with just creating a web app (ie. mobile responsive website)? I have a website, and then for my app, I just built a very mobile responsive site to facilitate as if you are in an app.
This is what I used to integrate into my website where I have my users paying each other, and they are allowed to send payments to two or more receivers as well. Andrew (the owner of the site/code below) is a genius and his code is so easy to use/implement. It is all PHP based.
https://www.angelleye.com/product/paypal-sdk-php/
And here I think is what you want directly referenced from PayPal developer site. What you are looking for is the Adaptive Payments "Pay" API call:
https://developer.paypal.com/docs/classic/adaptive-payments/
Pay API: Transfers funds from a sender's PayPal account to one or more receivers' PayPal accounts (up to 6 receivers)
Related
I implemented paypal sandbox in my application and after hours of headaches with their documentation, I managed to implement a working app that uses their RestAPI. Now I want to go live with the application.
In their documentation the steps to go live with the app are as follows:
1. Ensure your application adheres to the PayPal Application Policies and Guidelines.
2. Update the Sandbox API credentials in your PayPal calls to those assigned to a live PayPal account.
3. Update your PayPal endpoints from the Sandbox to the PayPal production servers.
4. Register your application with PayPal.
5. If your application makes use of Adaptive operations, obtain a live AppID.
6. Go Live!
I don't understand how can I register my application with PayPal (point 4). In the documentation, it says that my app needs to be approved by PayPal and that's it. How do I do that ? How do I submit my app for reviewing ?
If I understand correctly, point 1, 2 and 3 affect only my code, registering the new credentials, right ?
Finally, I need an appID, but I guess that comes as soon as the app has been approved by PayPal to go live.
The full documentation I followed is here.
Thank you.
As Per Paypal Documentation : Registering your application with PayPal :
Submitting your application
To submit your website or mobile application to PayPal:
Log into the PayPal Developer website using the credentials of the
PayPal account registered to the application owner.
Note: The PayPal account associated with the application must be a
verified Premier or verified Business account. Click Dashboard at the
top of the page to open the My Apps & Credentials page. (Alternately,
you can go directly to the My Applications page by navigating to the
My Apps & Credentials page on the Developer website.)
Registering a REST API app
In the REST API apps section, click Create app. See creating an app
for more information. Registering an NVP/SOAP API app
Click Dashboard at the top of the page to open the My Apps &
Credentials page. Click the Create and manage NVP/SOAP API apps link
at the bottom of the page. Click New App on the left nav bar to access
the App Information form. Complete the form and click the Submit App
button. To ensure the fastest possible application review, supply as
much information as possible when completing the submittal form. Tip:
When filling out the application, be sure to provide the e-mail
address that corresponds to the PayPal account that is used make API
calls. The type of API operations used in your application dictates
the review process applied to your application. PayPal divides
applications into three distinct review categories:
Merchant APIs include Express Checkout, Website Payments Pro, Button
Manager, Mass Pay, Recurring Payments, and all of the Informational
APIs. Adaptive APIs include Adaptive Payments, Adaptive Accounts, the
Permissions Service, and the Invoicing Service. Calls to these APIs
require an AppID value. Mass Pay includes only the MassPay operation
As per 2020
PayPal developer guideline, you just have to mail them all the required things that they want to register your app.
Login to http://developer.paypal.com.
Click on the Dashboard menu item at the top.
Under the REST API Apps section, click the Create App button.
Proceed with the steps to create the app.
Working on Android Application which provides platform for users to sell and buy their used products. Below is the scenario of payment screen when User(buy) want to bought an item.
How can i do this payment with paypal adaptive payment. I found something Parallel payment api but in this api doing parallel payment form owner's account need same thing with dynamic customer account.Every thing needed in PHP to develop web service will be used in android application.
Thanks.
Adaptive Payments, specifically the Pay API. That is how you would do the split payment as either parallel or chained.
From mobile apps I typically build the web services on a server, so you can still write everything in PHP and just pass data to and from PayPal back to the app through the PHP service. Then you make simple serice requests to your own PHP script and have it just return a basic JSON response or whatever you want to work with in the mobile app.
There may be more direct ways to get it done, but that's what I've always done and it works well. Allows you to use your web server for more detailed logging, too.
As of now, I'm able to link users to the desktop version of the payment preapproval page, where users can sign in or enter their payment information. Is there a mobile web version available?
here: https://developer.paypal.com/webapps/developer/docs/classic/mobile/gs_MPL/
"Because the Mobile Payment Libraries are build on PayPal's Adaptive Payments, you can accomplish many of the operations provided by that API with the MPL. For example, you can create mobile apps that provide for pre-approved and chained payments."
I have an iPhone app where I have a list of items to be sold. For the payment of these items, I have a web service on my sponsor's server that needs to be utilized by sending certain parameters such as amount, userid, discount coupons etc. So should I invoke this in a web view inside the application or should it be invoked in the web-browser? The sponsorer wants to show a message as payment successful or not in the application after everything is done. this information comes from the server itself. But if I invoke the browser i will not be able to track this information about payment successful or not? What should I do? Please help me with this
This is particularly interesting with regards to iOS as it gives app developers a fairly easy way to implement an alternative payment solution to the App Store, something that doesn’t infringe on Apple’s in-app purchasing policy if the goods being sold are physical not digital. It’s this scenario that Adyen is targeting.
As for the payment method itself, it accepts credit cards, PayPal and a range of other payments within mobile applications (native apps) and mobile websites. Of course, offering a HTML (browser-based) version of an app or service rather than a dedicated iOS app is another way of bypassing Apple’s cut.
Other benefits of Adyen’s payment platform is that merchants and developers can take advantage of a “fully integrated service that removes the burden of security and PCI compliance”, says the company. In addition, app developers can “skin” the mobile payment and checkout process, gaining control of the look and feel, which is said to be an important driver for increased conversion rates.
Merchants already using the new mobile payment platform include Pathe, the largest chain of cinemas in the Europe, via its iPhone app, and Greetz, the online greetings card retailer.
Following is my understanding:
With the help of iPhone and Android library, we can pay the amount from one Pay pal account to another account.
This is my doubt:
Then how can let the user pay the amount using his credit card details in an iPhone or Android App? Are you providing any Web service APIs to achieve it?
If this is not possible, how can we let the user pay using his/her credit card?
I got the solution for this problem from the PayPal guys.
This is what the PayPal answered me:
Currently direct credit card payments are not allowed through any of PayPal's mobile products, users will need to use a PayPal account to checkout using the libraries.
To clarify, PayPal have two main
mobile products at the moment, Mobile
Express Checkout (Web) Mobile Payments
Library (in App). Both of these do not
allow for the user to checkout using
just a credit card yet. They will need
a PayPal account.
I would not recommend using the
standard web checkout flow for mobile
checkout as the user interface is not
optimized for a mobile
browser/webView.
For the complete thread, visit this link:
https://www.x.com/message/193751#193751