Add same custom input fields to all Paypal 'add to cart' buttons - paypal

I have a list of items on my site that can be purchased, each with a generic Paypal 'Add to cart' button. What I need to be able to do is to collect info from eight additional fields - I've done this in the past on a page with just a single 'buy it now' button via on0/os0, but I don't want the customer to have to enter this extra information on every item they add to cart as it will be the same for every item on the order. Ideally the eight fields I need would be put on the Payment Page, but from what I've read Paypal don't allow this.
What would be the neatest way of doing this? If there was only one form on the page I can see how I could easily do it, but as each 'add to cart' button is a separate form I'm a bit stuck.
Thanks in advance!

You can build your own cart functionality and then use cart upload to transmit the result to PayPal for checkout.
(Or better yet, if you can write API calls, use the Express Checkout API -- with SOLUTIONTYPE=Sole in the initial SetExpressCheckout call if PayPal is your only method of taking payments)
Basically, you have to build this sort of custom cart functionality yourself. PayPal will gladly process the payment with the information you then send, and that is all.

Related

recurring payments where i can pass in the amount and number of payments

I am trying to make a recurring payment button but I want to be able to pass to it the total amount to pay and the amount of payments
if i create a button in paypal then i have to create a button for every option - is there anyway to pass in the html the amount and the number of payments
When creating your button makes sure to disable the "save at PayPal" option which turns it into a hosted button. This will make all of the button details available in the HTML code.
At that point you could then dynamically set the values of the HTML form parameters.
Keep in mind that doing this is less secure because somebody could view source, copy your button code, adjust the values to whatever they want, and then check out that way.
The best way to do this would be using the Express Checkout API, but that will require more coding knowledge.

Paypal Express Checkout - multiple price options to choose from during payment on Paypal page?

I am wondering if there is such thing :
when a vistor clicks "Pay" button (placed on my site) - on Paypal site during payment there will be several options to choose from. Something like three radio buttons
Pay for one month
Pay for three months
Pay for one year
so in order to pay a user should first select which option to pay first.
Again - I just would like to know if such posisbility exists. I know how to set this up on my own site.
Thank you
That wouldn't happen on the PayPal site, but you can certainly get that done on your own site/application. Build in the logic and interface for them to choose what they want to pay and what schedule to do it on, and then you can use the corresponding PayPal API to get it done. Specifically, I would recommend the Express Checkout API.

Managing PayPal Donations, Add to Cart and Subscription using single request

I am using website payments standard and I have the following requirement. Please let me know if a solution is available for website payments standard.
I already have subscriptions integrated to my website. I would like to have a feature that enables the user to donate a dynamic amount along with the subscription. For that, I plan to add an additional text field for the amount in my payment page. I would like to know if it is possible to manage both donations and subscriptions in the same request.
Let me be more clear about the requirement.
When the user clicks a custom subscribe button, a page with a text field to enter a donation amount will be displayed. Suppose, the user enters a random amount. The user will then click the PayPal subscribe button and will be taken to the PayPal site for the payment. Both the subscription and donation have to be managed separately so that I can easily identify which one is subscription fee and which one is donated amount by looking into the PayPal statements.
Please let me know if this is possible with website payments standard. If not, can you please help me how to achieve this?
My additional requirements are:
I need to combine Add to cart button and Donations too.
I would like to manage subscriptions just like Add to cart feature. i.e., Paying for multiple subscriptions at once.
I am looking forward to your reply.
Is not possible to make both "Donations" and "subscriptions" in a single payment. Unless you treat the donation as an additional amount for your subscriptions initial payment.

PayPal Donation button in form element

I am having great trouble to make PayPal donation button works as when I want to add is in between form tag. So where PayPal button itself having own form tag and action but when inserting between my form tag it is taking my form action and completely ignoring PayPal own form action which is stopping to take donner to Paypal page.
Now limitation is I cannot move PayPal button nor my own Form tag or action so please guide me.
You can't embed a form within a form, which is why you're having the trouble you're having.
One thing you can do to fix the issue is to make your form post to a final confirmation page which would then post to PayPal.
If you want to avoid the final confirmation page you could make your form post to a processor script like PHP that generates the request to PayPal and sends the user over there accordingly. The Express Checkout API is great for this sort of thing, but you would need to be familiar with web services in order to utilize that.

Creating paypal buttons on the fly

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!