What PayPal API should I use? [closed] - paypal

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
I am creating a project whereby users are able to create webstores for their customers to purchase items from.
My current two thoughts are:
Payouts API whereby all customer payments will go to myself, and I will then use the Payouts API to send payments to users.
Have users enter in their API credentials in their user area so that their customers can send money directly to them using the Express Checkout API
Neither of these options feel optimal - the payouts API means I will be responsible for all chargebacks and payment disputes between customer and user. Forcing the user to enter in their API credentials is a slightly better solution however it would require me to provide documentation and support on how to create their API credentials.
I will likely go with option 2, but I'm hoping someone may be able to provide more options that I've overlooked or not seen in the docs. Thanks in advance.

Option 2 is correct, it is what all third party shopping carts do.
There exists a third option, the payee field, but you run into permission issues for refunds and authorizations. So Option 2 is the correct one for your use case. Each receiver should create a REST APP and enter the ClientID/Secret into your system.
You mentioned the "Express Checkout API" so you might be using something old/classic, which you should not do. See this front-end demo pattern of Smart Payment Buttons: https://developer.paypal.com/demo/checkout/#/pattern/server
Notice the two fetches to '/demo/...' endpoints, which must be replaced with actual routes on your server. The first should create a v2/order and return an OrderID. The second should capture that v2/order after a payer has approved it.

Related

PayPal button IPN handling [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I have a simple "pay now" PayPal button on my website. I also have a server listening for IPNs. The IPN handler basically updates the validity of my user´s account.
But what´s hard for me to do is the correct handling of the IPN.
The basic handling with the validation step is no problem.
But I also need to check and handle the transaction type and payment status.
In the PayPal docs there are many different values for different cases (express checkout and other stuff I don´t even know what it is). That confuses me because I don´t know which values are relevant for my case.
Does anyone know a good and simple tutorial or example of how to handle IPN?
(which goes a little bit further than how to receive the IPN)
The PayPal IPN Variables documentation lists all of the transaction types and the values you would expect from the different types of payments you could be processing. The descriptions next to each should give you the info you need about when you should be looking for one value vs. another.
So you said you're using basic Pay Now button, right? Based on the documentation this would send a web_accept IPN.
Payment received; source is any of the following:
A Direct Credit Card (Pro) transaction
A Buy Now, Donation or Smart Logo for eBay auctions button

Which paypal service should I use [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
In my web application (spring mvc + jsp), I have to implement payment process which I will take the money of someone (i.e buyer), deposit to someone else (i.e seller), and keep a portion for myself (i.e commission). I would like the process will perform on my website instead of redirecting to paypal. I have tried to search for the service that I need, but after a while of reading it, I am very confused. I am thinking I may need some mix between Adaptive Payment or Website Payment Pro. However, I think that Paypal would also provide a service that I am searching for, but I haven't found yet. So would anyone mind to help me out of this confusion please?
In order to do the payment split as part of checkout you would need to use Adaptive Payments, specifically the Pay API with a chained payment. Unfortunately, you can't avoid redirecting the user to PayPal with this method.
If that's a must, then you'll need to go with Payments Pro, but then you can't do the split within a single checkout, and you can't split the fees up among the receivers. So you'll end up paying a fee when you receive the money, and then when you send the money there will be another fee there, too. Also, if you go that route you would be responsible for any chargebacks that occur, so this is simply not recommended.

providing PayPal payments functionality to SaaS customers [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I am developing a system that provides event signup/registration services. Event hosts should be able to offer online payment options to their customers via this system.
I need a scenario when event owner (assuming he/she already has proper PayPal Business account) configures the minimal amount of information in the system (like merchant ID) and then he's able to receive online payments without having to dive into technical details of the integration.
I have started with JavaScript button solution, but it turns out that it's not very customizable (for example I cannot change button title from 'Buy now' to 'Pay now').
Then I have spent some time researching Button Manager API, but it seems to be over-complicated to accomplish the task of just changing the button title.
Could somebody point me in a right direction?
You can easily change a standard button's image, it is simply an image URL in the client-facing code. If the javascript wrapper doesn't let you specify an image URL for some reason, don't use javascript buttons. Create your own based on an unhosted button generated at paypal.com by unchecking the step 2 option to save the button at PayPal as well as the You are viewing your button page's option to remove code protection. The "business" variable would then become your host's PayPal email or PayerID.
None of the above is the recommended route, which is to use the Express Checkout API and pass the parameter SUBJECT=hostspaypalemailaddress#domain.com (or PayerID) in your initial SetExpressCheckout call. You probably also want SOLUTIONTYPE=Sole if this is your only payment option.
For onboarding new hosts you can use the Permissions API.

Send invoices with paypal api? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I want to allow users to be able to send a paypal invoice in 1-click to their client.
angelleye gave me his php CreateAndSendInvoice.php file that is supposed to do that, but how do I start using it, do I need an api key?
The key is each user would have to enter some sort of credentials to verify my app to be able to send out invoices on their behalf.
Does anyone know how to do this? (website is https://cworklog.com )
Honestly, I would recommend avoiding the actual invoicing API for now. I've been using it with a client of mine and it's very buggy right now.
If you pass your own invoice ID into CreateInvoice or CreateAndSendInvoice it will only sometimes be returned via IPN. PayPal can't seem to tell me why this is.
Also, if you need to re-send invoices it can be a pain. SendInvoice only works once. You will get an error if you try to use that to send the same invoice again. Your only option at that point is to use the InvoiceURL returned when you first create the invoice.
This would be fine except that when this URL is used it forces a login to PayPal to view the invoice so guest checkout (paying with a credit card instead of a PayPal account) cannot be used this way.
Also, GetTransactionDetails is not returning the invoice ID for PayPal invoices either. I tried to use it as a work-around to the IPN issue and was shut down on that idea.
I would honestly recommend you just setup your own invoicing system. It really wouldn't be that much more work than building actual invoicing API requests.
You could let your users setup their invoice items and basically create an invoice in your own database. Then generate a basic HTML email with a pay button that points to a URL on your server. This URL can pull all of the order details back out to display an invoice to the payer on screen.
You can build Express Checkout into this for the payment processing and all of the issues I mentioned above wouldn't get in your way.
You can use the Permissions API to allow users to grant permission for your app to make calls on their behalf. Users could also do this manually through their PayPal account profile under "Request API Credentials." Instead of creating their own they would choose to Grant API Permissions and then enter your API username along with checking boxes for the permissions they'd like to approve.
Answer Summary:
Setup your API calls on the sandbox so you have a working demo.
Submit your application to x.com for approval. This will get you a live App ID to use against the live PayPal servers.
Have your users grant permissions to your app manually from within their PayPal account or via the API using the Permissions API.
Build your system to use the tokens obtained via Permissions API for your customers accordingly.

Paypal as payment gateway? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 years ago.
Improve this question
i have to choose between several payment gateways. I heard that PayPal is quite a mess and there were several fraud-issues? Does some of you have experiences with PayPal?
Thanks in advance
I've used paypal for long time and had problems. Remember that Buyer is almost always right if you chose to work with them. Also you may get your account locked if you have unexpected amount of trx in a day. But yet, that is what most of the users use nowadays. I can only suggest you to call them and talk with them about what you are developing and what kind of sales volume are you expecting. You can reduce the risk to the minimum this way. Good luck
I have.
PayPal is, in my opinion, one of the best gateways around the world, if not the best.
Let me answer straight to your points:
"Quite a mess": actually not. PayPal's APIs are widely documented and PayPal offers you a sandbox mode to test your software with fake accounts and fake money to see if your software works or not (you might find, for example, your ecommerce application tries to deliver an order the customer didn't pay for after canceling the order, etc). I don't think this stands for quite a mess since you can perform deep software testing
Fraud issues. Let me tell you that Internet frauds occur often, and it's difficult (while not impossible) to protect from them. PayPal does a lot to protect both customers and sellers from frauds. Customers are mainly protected on eBay from fraudulent sellers, but sellers are protected from chargebacks too. If a fraudulent customer buys goods from your website, the chargeback protection applies. In all cases, PayPal might freeze part of your money during investigations.
By the way, PayPal as payment gateway enables your website to accept all credit cards, so you don't need to sign with another gateway.
Unfortunately,
PayPal is expensive IMHO. A little too expensive...
Tronic,
Pay pal is a Secure Transaction payment gateway used globally. Transaction is secured by VeriSign Identity Protection. It means your information is secure when you are going for the transaction. Paypal is easy to use and integration with programming language is very easy. Paypal provide a sendbox account for test your code once developed. Make sure you have to follow the terms and conditions for transaction with paypal e.g. transfer limit etc. For detailed information of integration, payment methods and creating sand box account visit to PayPal Developer