How the users can send each others payment in flutter - flutter

My app is a multi vendor app, here the users will sell and buy each other's products, I need to integrate the paypal payment in my app, I have tried a code in which a user can send money in an account(the account whose client id and secret key I have defined in the app) but I need something where users can send money to each other. Please help me!

The users can send payment using each other's email id without needing of client id and secret key. You can use the flutter_inappwebview flutter package for paypal payment integration. Moreover you can also create your own php code. I have found an article on paypal payment integration in php, here is the link:
https://phppot.com/php/paypal-payment-gateway-integration-in-php/ you can put this code on your server and access it in your app using flutter_inappwebview package.

Related

Create a PayPal client id to use with checkout.js for a third party business

I have developed some bespoke booking software which I host for 3rd parties. Some of them require PayPal integration for their customer payments.
In my PayPal Developer account I have managed to create an app and sandbox account and have managed to get my test/dev site processing payments successfully.
I'm using checkout.js to create a PayPal button on the customer invoice page.
I assume I create an app for each of my clients that require PayPal access through my software?
How do I link the app to my clients business PayPal account? I'm confused as to what I need to get them to do at their end.
It turns out that the third party must create their own PayPal Developer account and create an App within it, they then need to send you the App production client ID and primary email address of their PayPal business account.

Paypal Rest API on webshop provided to third party companies

Background
We are developing a webshop that we sell to other companies.
The companies hosts the webshops and sell their products on their own servers.
The webshop uses the Paypal Rest API for the customers to make payments.
https://developer.paypal.com/docs/api/
To activate Paypal as a payments method the companies provide their Paypal details in the webshop admin area.
How we do it now
Right now the companies need to create a Paypal Developer account, and then create a new App in developer.paypal.com to get their own Client ID and Client Secret Code.
They then provide their Client ID and Client Secret Code in the webshop admin area.
Question
Is this the correct way to do it?
We think it feels a bit strange to tell our customers (the companies) to create "Developer Accounts" in Paypal, when they are not actually developers, just webshop owners selling their products.
I found this information about setting a parameter called "payee", which means you can set the receiver of the payments, see: https://devblog.paypal.com/setting-payee/ and https://developer.paypal.com/docs/api/payments/#definition-payee
Is it possible to use the "payee" as a solution instead, like this?:
We as developers of the webshop have a Paypal developer account, and provide our Client ID and Client Secret Code, which are then used in all our customers webshops? Then the companies would only need to provide their Paypal Account Email in the webshop admin area, which is then used as the "payee" parameter.
Is this a good and ok solution? Or is the same App, Client ID and Client Secret Code not allowed to be used for multiple companies and their webshops? How can we solve this then?
Thanks!
This is solved after communication with PayPal support.
This is some information from the communication that answers my questions:
"Do not use then the payee field as you will be able to deal with all the transactions created, that you don't want as you are an external "actor" in the payment process."
"About creating a developer account and App it does not mean that they are developers. The developer portal is a tool that allow to manage the Apps and deal with Sandbox test accounts. It is the only way to create an App."
So the conclusion is that we are doing it the correct way today, which is like this:
"Right now the companies need to create a Paypal Developer account, and then create a new App in developer.paypal.com to get their own Client ID and Client Secret Code.
They then provide their Client ID and Client Secret Code in the webshop admin area."

Android:how to add Paypal integration to the buy button

I am new to PayPal integration using android. i dont know the basics of paypal integration. What type of sandbox account do i need to create?
And how to link the payable email id and how should i use the api etc
You can create a PayPal Business account in developer.paypal.com.
If you want to create an android app with REST API, download the Android SDK and just run it.
This is for REST architecture.If you want to use a Web application which works in android/ios environment, then PayPal will take care of it by determining the user agent.

How do I get an application id for Paypal?

I received API credentials but I need api application id to send Adaptive Accounts API Requests.
I used their sandbox app id: APP-80W284485P519543T.
now it's time to go live.
In order to go live, you need to register your application with PayPal to obtain an application ID.
When you submit your application to PayPal for review, the application
is quickly scanned for the requests to PayPal operations. If no
"advanced" operations are found, PayPal issues an AppID for the
production servers at the time you submit the application.
Just because PayPal docs are kind of messy like #Deekor said in the comments, I think it would be good to leave the following links in case anybody like me is wondering where the hell do you REALLY get an AppID (e.g.: for adaptive payments).
Just go to PayPal Developer, once you log in, go to Create and manage Classic API apps or directly to PayPal Apps.
Create an app, once created you get a Sandbox ID which is you AppID and the LiveID as pending.
Date: 3/28/16 (new developer.paypal.com Adaptive APPID walk-through)
Hi All - I will update this since it's been a while. Please note this is for the classic Adaptive Payment APP ID (NVP/SOAP APIs) process and not for the REST APP or BrainTree V.Zero SDK.
Do the following:
Go to developer.paypal.com
Log in with PayPal Account email and password
Click the 'Dashboard' tab up top
Click 'My APPs & Credentials'
Click 'Create & Manage NVP/SOAP API apps link
On the redirect to the classic developer portal, Login to PayPal account you want to apply for the APP ID with (a business PayPal account is highly suggestive for underwriting approval)
For Live APP IDs it takes between 24-48 hours; you should get notified when approved. If you don't, contact business support. The number is in your paypal account / contact us section (pending status)
For SandBox you'll get the APP ID right away, regardless of how you applied; live or sandbox
You should see the APP ID in the classic developer portal in the 'manage your apps' section.
For REST APP ID please click here link

Could I make users config their PayPal account info in my website, so they can receive payments without giving me private info?

I'm building a web application and I would like that each user could configure their necessary information about their PayPal accounts in order to receive payments from the app. Can this be done?
I've seen a website that asks each user to type their PayPal email in order to receive payments, but I don't know what I have to do programmatically in order to use that user's account information so that person receives the payment.
Thanks,
Brian
Yes, it is possible to do this using PayPal Website Payments integration. Essentially your client needs to set their PayPal account up to receive payments, this usually requires them to prove that they're a legitimate business, although charities and some other personal reasons for taking payments such as wedding gifts are allowed as well.
Once setup they will be given a unique vendor id which can be embedded into a form on your website. When a customer wants to purchase something, this vendor id is passed to paypal and they handle the transaction from there. This means you don't have to store any credit card information on your website.
Check out the PayPal Website integration guide here: https://www.paypalobjects.com/en_US/pdf/PP_WebsitePaymentsStandard_IntegrationGuide.pdf