Paypal customized user checkout - paypal

Is there any known way (an api or something of the sort) that I could use to create my own user checkout experience for Paypal?
So, for instance, the user clicks my donate button which takes them to my donate page. I collect the needed user information and pass it securely to paypal using some auth method without ever redirecting away form my site or using their "Customize your Payment Page" (which is entirely not customizable enough for me).
I've looked through their myriad of api's but haven't found anything useful yet.
Thanks!

This can be done using the Direct Payment API. In order to use it, though, you need to have a Payment Pro account with PayPal.
If you plan to implement it with FuelPHP, then there is a feature rich, driver based, package here.

Related

Get Webhook if donation is made to 3rd Party Charity through my Website

I would like to offer a service to my website's users if they donate to a charity while visiting my website. E.g.: Users visit my website and can unlock something if they click a button to donate $10 to a suggested animal sanctuary charity.
I would like to be able to keep track who donated. Importantly, I am looking for a way where I don't have to handle any money. I just want the money to go directly to the charity and get informed how much was donated by the users visiting my website.
Current solutions seem to suggest that PayPal is the best way to do this. Are there other alternatives also, preferably alternatives that have an API for this very purpose and offer Webhooks??
The best alternative I could come up with so far is to create a GoFundMe, but I would much prefer if it is donated directly to a chartiy. Does anybody have an idea how this could be accomplished?
If you want to use the PayPal Donation flow, you can use the Donate SDK or button, setting a business parameter (rather than a hosted_button_id) to a value that is the PayPal account to receive the donation.
For notification you can use the old IPN service, specifying a notify_url as documented here.
The newer Webhooks service cannot be paired with facilitating Donate flow payments to another account.

What is PayPal API for when accepting payments in my website thru a button? Do I need to use API?

I'm in the process of developing a feature to accept payments in my website, and I already did it using a paypal button and IPN (a PHP listener to process data to a DB once the payment is completed, this one actually https://github.com/paypal/ipn-code-samples/blob/master/paypal_ipn.php, properly customized).
I never touched PayPal API and I wonder if I am missing something... I'm kind of new to this kind of development and I want to be sure I'm doing it right and not missing any obvious thing which might compromise the security of the payment or whatever... I already tested things in Sandbox and everything works as expected, but I am concerned about the API and I see many people using it...
So, am I missing anything?
Thanks!
What you've done is accurate and will work just fine so long as it's suiting your needs.
One potential security risk would be if you are not using a hosted button. Did you choose to "Save this button at PayPal" when you created the button? If so, you should see a hosted_button_id included in the HTML for the button. In this case it's protected.
If the button code includes individual parameters for things like item_name, amount, etc. then that code could be adjusted by people in their browser and then the button could be submitted with different pricing, for example.
You could check for this sort of thing in your IPN script and setup an automatic refund if the price doesn't match your database, but I generally try to avoid that sort of thing.
I prefer using the Express Checkout API instead. If you were comfortable getting IPN working with PHP then you should be plenty comfortable using this PayPal PHP SDK to integrate Express Checkout.
The three calls you'll need to work with are SetExpressCheckout, GetExpressCheckoutDetails, and DoExpressCheckoutPayment.
This documentation will cover the general steps and where those calls come into play, and that library will make each of those calls very simple for you.
Express Checkout will eliminate any potential adjustments users could make to code (because they won't be able get to the code at all unlike HTML) and it also has more advanced features and options that PayPal Standard does not have. Most importantly, the ability to force the "guest checkout" experience so that non-PayPal account holders can easily checkout using a credit card without any confusion.
They can do it with PayPal Standard, too, but depending on cookies set in their browser it may make the guest checkout option tough to find. Express Checkout makes it very prominent at all times, and generally results in increased checkout conversion rates.

PayPal - Dynamic payment receiver?

I plan to create a page on my website that lets others upload games and apps they've built, then sell them via PayPal. Please forgive me if this is a simple question, I've never used PayPal for anything other than purchasing things. I need the button to dynamically change who it's sending the money to. I understand that in order to split who the money is going to, I would need to set up a business account, but if I wanted the creator to keep all of the money they charge for their virtual goods, would it be as simple as changing one of the tags within the PayPal form?
I'm experienced in PHP, SQL and Javascript, so dynamically changing any of the forms elements wouldn't be an issue, but would the payment actually finalize?
Yes, if you're working with Payments Standard it would just be a matter of updating the business parameter with the email address or PayPal merchant ID of the person you want the money to go to.
This isn't the best way to do it, though, because people can see the HTML, copy it, adjust it, and submit payments that are for less than what you set the price at.
In order to protect that sort of stuff you could generate your button code using the Button Manager API, or better yet, go with Express Checkout and the Permissions API (or manually granting permissions) so you can make API calls on behalf of 3rd party users.
My PHP class library for PayPal would make this pretty simple for you.

Paypal Pay Now Button

Been looking at the PayPal API documentation, there is so much to look it i thought i would ask here to get a more clear answer from someone that's done similar.
I'm looking to add a 'pay now' PayPal button to invoices that are generated by users within a web app for their customers. So a payment should never reach me at all. I understand that the button is probably the best option however it will need to be the encrypted button to be more secure.
I understand i need to use my PayPal account to be able to access the API and generate these encrypted buttons? it's literally just a matter of setting the item, cost and business parameters really, I don't want any transaction hitting my account.
What are my options? and is this even possible.
Thanks!
If you're familiar with web service API's skip the standard buttons altogether and just go with the Pay API.
That will allow users to easily pay by signing in to a PayPal or using a credit card (guest checkout). In most cases users would be authenticating the payment during checkout, but you could also tie in the ability for people to use Preapproval profiles so that future payments are automatic (or one-click, or whatever you want.) You use the Preapproval API to generate a preapproval key for the user, and then future Pay requests can include that key for immediate payment without further authentication.
If you're working with PHP my class library for PayPal will make this very simple for you.

integrating paypal check without leaving your site

I want to integrate paypal in my website. But my requirement is, I dont want my customers to go into paypal site for payment. (I know it is not a secure way, but it is my requirements) Is there a way such that I can do credit card checks in backend using paypal APIs ? If so, which method to be used? I want it for "singapore" country and SGD as currency.
Waiting for your suggestions!!!
Thanks in advance. :)
Are you trying to avoid your users having to navigate to PayPal or are you trying to 'hide' the use of PayPal?
The prior should be easy enough to resolve. PayPay provide several tools (and instructions) on how to build a "Pay Now" button, which you can manipulate server side to include a dynamic amount and order ID etc. This would forward the user to a PayPal page to login and confirm payment, then return them to your site (any page you specify) on completion. You can also link this to an IPN. The PayPal payment page can be skinned / branded to an extent.
What you are looking is called Direct Payment. Here is more info about it:
https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_WPDirectPayment
Maybe you are looking for this Paypal product