I want to create a Donate Now button that has variable amounts similar to what Paypal uses on its Giving site.
How is this accomplished? I tried using the button builders to no avail. I'd really like to be able to implement this client side.
PayPal's giving website uses Express Checkout solution to allow user enter the amount to be charged on the client website.
It's just that the button to initiate is pictured as "Donation button".
For more information on Express Checkout implementation: https://developer.paypal.com/webapps/developer/docs/classic/express-checkout/integration-guide/ECGettingStarted/
Related
I would like to include PayPal recurring donation buttons on my website so that users can donate to other nonprofits/charities of my choosing. My website would include many of these buttons, and all money would be sent directly to these charities. How would I go about this? As far as I know, one can only create donate/subscription buttons where the money goes to the creator of the button. Thanks!
When you create the button make sure to uncheck the option to save the button at PayPal, which would bind it to that account.
When you do that the HTML code provided will include a "business" parameter that would be the email address of the account the profile should be created with and the money should drop in to.
Another option would be using the Express Checkout API, with which you can specify the account the money should go to with the SELLERPAYPALACCOUNTID parameter.
I cannot figure this out, and neither can the people on some developers forums I have posted to.
The link below has example code to upload the contents of a custom shopping cart to PayPal. It works great, but it comes with a caveat. On the page, right above the code sample, is this important message:
"Important: The example button code shown below is unencrypted for illustrative purposes only. In reality, you must always use encrypted or hosted buttons in your web pages to prevent malicious users from tampering with the code. See Securing Your PayPal Payments Standard Buttons for instructions."
So my questions is this: how to I create an encrypted or hosted button to do the upload. I have tried, but PayPal won't let me create a button unless I enter the price of the purchase. Duh! It is a shopping cart. The price is always different.
https://developer.paypal.com/webapps/developer/docs/classic/paypal-payments-standard/integration-guide/cart_upload/
Please view this documentation for assistance.
This is the API reference for buttons
PayPal Button Manager API
This is documentation about securing the buttons that is also linked on the cart upload page.
Securing Your PayPal Payments Standard Buttons
We send people to PayPal to either donate or subscribe to our site.
We have guest access enabled, when you start a fresh session and navigate to our donate page and click the button, you get a nice 'guest' checkout page.
But, if you log in to PayPal and then logout again, you don't get this form on your next donate, you get the 'login' form.
I'd like to be able to force all users to the Guest form if possible. I know that there are a bunch of features not available to us lowly 'donate button' users (as opposed to Express Checkout and the like) but surely I could pass a param that forced the Guest form?
Answering my own question here.
Can you force PayPal Payments Standard API to show credit card fields first?
Is it possible to have PayPal standard expand the 'Guest Payments' tab by default?
Its all based on the PayPal cookie and there's nothing that allows you to override that.
EDIT This has been confirmed by PayPal support.
If there is a cookie, or if you provide an email like WooCommerce does by default PayPal will assume you have an account. See my answer in Paypal Payment Standard default enter card details
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.
I have a webapp, where users sell printing services, I want to allow my users to add a pay now buttons to their pages so customers can pay for their services.
My users specify their paypal email address etc in the settings and set up their services with a price etc.
What API should I use to create the pay now buttons on the fly ?
Thanks
You don't need an API for creating "pay now" buttons. You can either create the button from within your customer's Paypal accounts or dynamically generate with HTML (see HTML Variables for Paypal Payments standard).
One advantage of creating the buttons from your/their Paypal account is that you can get an additional layer of security (support for encrypting the form or using a hosted button id so user cannot change the amount submitted to Paypal).
However, if you deal with hundreds of different buttons then it makes more sense to dynamically generate the buttons and just perform additional validation when Paypal sends back the confirmation (either through PDT or IPN) before shipping your items.
You could use PayPal's JavaScriptButtons API and create your buttons dynamically with:
paypal.button.create(business, data, config, parentNode)
There is an button manager API that let's you create secure buttons - here is more info: https://www.x.com/developers/paypal/products/button-manager
PayPal offers different buttons based on your requirement.
Follow these steps to generate PayPal button:
Login to your PayPal Account
Click on Tools --> All Tools
Click on PayPal buttons
Now you are given few button options --> Buy Now is one if them.
Follow those three steps and then copy the code at the end of 3 steps and paste it in the page where you want this button to appear.
You are good to take Payments!