Transaction description and app name not showing with PayPal REST API - paypal

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);

Related

Obtaining PayPal Partner ID for Onboarding API

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.

Paypal sandbox showing wrong STORE name

I have tested my paypal payment with sandbox account using my API details. Now I want to use Clients API details for sandbox and changed code accordingly. But it still redirects me to the previous store.
Any idiea what is wrong i am doing.
it looks like your code didn't change the API credentials in some way. Try to check again the new APIs that you want to use and replace the previous one.
Usually, for example in ExpressCheckout, when you initially call the SetExpressCheckout you provide the API credentials of the seller so that when the checkout is displayed you can connect to the seller shop to pay and all the money will be directed there.

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/

Paypal App is "Conditionally Approved".What is the timeline to get it approved?

I have created and submitted a Paypal application ( using the classic API). The application is in a conditionally approved state. Paypal reached out and asked additional questions which I responded back with details. The application does not use the Paypal API to make payments. It only reads transactions related data and shows useful reports and insights for users. The API permissions requested are
1.Obtain transaction specific information.
2.Obtain your paypal account balance
3.Search your transaction specific information.
4.Search your transactions for items that match specific criteria and display the results
I was able to get a live app id and also have the API username, password and API signature. However since our app uses Paypal oauth, the permissions part doesn't work . My guess is this is because the app is conditionally approved. Is this the right assumption? Also what is the typical timeline for an app to get approved? My Paypal account from which I created and submitted the app is a verified account. I have sent messages from within my developer portal to support but I haven't heard anything back.
So far we have been working with a sandbox account. The live application I created is in a different account than the sandbox account. I am not sure if this is an issue.Would be great if someone who has been through the process can confirm.
Unfortunately there is not really a "typical" time frame for app approvals as too many factors go into the approval process. The best thing would be to call in to PayPal to inquire on the status.

Verifying paypal account

I am building website which requires customer to update paypal account.
Is there anyway to check the reality of customer's account?
When my customer fill out their paypal account in my site, I want them to be directed to paypal login page to login and paypal will return the result.
Does paypal api support this situation?
Pretty much any implementation of PayPal you choose would follow the flow you mentioned.
Payments Standard would allow you to create basic buttons or create an HTML form and POST directly to PayPal to process. It would send the user to PayPal for login and approval to complete the payment. The transaction details would include the payer status (verified or unverified) as well as the address status (confirmed or unconfirmed) and lots of other details about the order.
Express Checkout is basically the API version of Standard, but it's much more advanced and open to integrate in the way that works best for your site or application. In this case, some of buyer/transaction data is available during the process within your app through API requests and responses, and then you can also get to it via transaction details after the fact just like payments standard provides.
Another option would be to use Adaptive Payments, but if you're doing a general payment of any kind you probably don't need that. That's what you would use if/when you start wanting to split payments among multiple receivers within the same transaction, setup preapproval profiles, etc.
If you happen to be working with PHP my class library for PayPal will make the API calls very simple for you.
You could do what PayPal itself does when you register. Send them a few cents and have them tell you how many when they get it. The payment itself will fail if the account doesn't exist, and telling you how many cents proves that they own the account.