Obtaining PayPal Partner ID for Onboarding API - paypal

I'm using paypal commerce platform to onboard sellers.
Sellers are onboarded successfully and a merchant-id is generated after process is completed.
but when I'm trying to fetch their information from the following api (as provided by paypal docs),
https://api.sandbox.paypal.com/v1/customer/partners/{partner-id}/merchant-integrations/{merchant-id}
I'm confused what is the merchant-id and what is partner-id, I only get merchantId after seller is onboarded. there is no partner-id
And Wow, look at their docs.
please see the doc image here
Partner id is refernenced as merchant account id.
what the heck is this.
If any body could help me. please it would be much appriciated. Please ignore the typos.

When calling partner APIs, you are the partner. Obtain your account's ID from the place explained in the doc image you linked, under Profile and settings.
For sandbox mode you'll need to log into the sandbox API calling partner account via the https://www.sandbox.paypal.com account interface -- using its credentials from the Developer Dashboard.

Related

Transaction description and app name not showing with PayPal REST API

I am using PayPal Payments REST API to accept payments on some website.
Just now I noticed that both the transaction description as well as the app name (which you configure in developer dashboard) are no longer displayed. Why is this? Some recent change? Or something with my account?
It is very bad as I have a single company PayPal account which I use for various websites and the app name & transaction description is to give the corresponding payment flows their own identity. Currently people abort payments because they don't understand why the details in the payment overview on PayPal are completely different/unrelated from where they initiated payment.
Please see image below for what I mean.
If anyone can confirm this is happening for everyone now and/or refer to some PayPal documentation/statement regarding this topic then please share. I could not find anything on PayPal developer resources.
To display a 'custom' name, you need to create a custom 'Web experience profile'.
I was utilising the PHP SDK so did so by following their sample code.
You can also create a 'Web experience profile' with a direct request to the relevant API endpoint.
Once you have created the profile you simply set the identifier on the Payment object (PHP) like so:
$payment->setIntent("sale")
->setPayer($payer)
->setRedirectUrls($redirectUrls)
->setTransactions(array($transaction))
->setExperienceProfileId($this->config->paypal->experienceId);

PayPal API for funding business account

All the users on my site have a personal account. I would like to add paypal as a payment method to fund a user account. Upon a fund the user account will be credited so he will be able to pay for the services I provide. Is it possible?
Yes, this is possible you can write a script that after the users payment several lines of code get executed that activates your service and credits your account.
The easiest way of doing this is by using a payment provider that sits between paypal and your site. They can deliver you directly the scripts and API you need.
Ofcourse you can also make them yourself. Not sure if the PayPal API already includes this functionality.
I hope that this is of any help
Paypal provides an API to integrate and customize its payment platform to your website.
For starters this limk will give you a breakdown on what you can do with the api.
https://developer.paypal.com/docs/classic/api/gs_PayPalAPIs/
try this link if you are keen on developing that part of your site.
https://developer.paypal.com/docs/api/

How to retrieve from Client Buyer's Account his avaliable 'funds' or 'balance' on PayPal API?

I've just setup my PayFlow Service Manager with my admin settings and create a Sandbox Account to have a test environment. I was reading the docs and the SDK specifications, the samples code on Java...But I still can't find how to know how much funds available have the Client on his PayPal account, before execute a payment in my Site...
I found something of the classic API (GetBalance). This request doesn't exists yet on the new REST API. I need to implement on Java code.
Please Help! Thanks!

PayPay Developer account access and production

I am having another developer do the PayPal integration for an app. I want to allow them to do this without giving them access to the real bank account information or anything about the PayPal account which would allow them to have access during production. They requested that I make a PayPal Developer Account and provide the Client ID, Client Secret Key., and Merchant Name.
Do I create a PayPal developer account and give the developer full access to it by giving them the login? Then when the app goes into production how does it use the live PayPal business account without the developer being involved?
Can someone explain the correct process in having a developer do the PayPal integration for development and testing but not have any access to accounts during production?
I've read the PayPal documentation and similar stackoverflow posts but can't find the answer I'm looking for.
You can check the sample app by downloading it from here. It includes both the things sandbox enviornment & real account. You can take reference from this sample app.

PayPal API credentials for sandbox

I'm trying to implement recurring payments with PayPal in PHP. I found this example, which I'm looking into, but I need some API credentials. I created a PayPal sandbox account, and from there I created a merchant account. I'm trying to get the API credentials for that sandbox merchant account to replace the values in the example, but I can't find where. All the guides I find point to non-existant parts of the sandbox user interface. Does anyone know where I can find the API credential details for sandbox merchant accounts?
Thanks.
I'm beginning to I loathe PayPal. Spent an hour on their site looking for this, only to find it here on SO (works as of Oct-2014):
Live: https://www.paypal.com/us/cgi-bin/webscr?cmd=_login-api-run
Test: https://sandbox.paypal.com/us/cgi-bin/webscr?cmd=_login-api-run
To get API credentials in sandbox you must use the API Credentials menu in sandbox itself, instead of logging into the sandboxed account.