PayPal Donation button in form element - paypal

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.

Related

Paypal payment page odd behavior

I have integrated Express Checkout with my application it works fine but sometimes paypal payment pages behaves very oddly. When user is directed to payment page, the page it shows is not same all the time. sometimes it shows saying "Login or Checkout as a Guest" and sometimes user see a page saying "Login as paypal or Create an account"
I have attached the image url Please see the following links.
First Layout
http://oi60.tinypic.com/149rpcn.jpg
http://oi60.tinypic.com/2r43ms2.jpg
Second Layout
http://oi58.tinypic.com/vxcl04.jpg
http://oi62.tinypic.com/v3j3hc.jpg
First layout makes sense. but second layout creating confusion when it says "create an account"? is that means creating paypal account or what? when i click on the option it simply shows me credit card details to enter. i dont know if that is related to the payment or asking to create new paypal account?
PayPal has been split testing the old EC pages with the new ones that you're seeing sometimes. In order to work with both sets of pages nicely, you'll need to make sure to add an additional parameter into your SetExpressCheckout request.
It looks like you're already using the following (and if you're not, you need to add them)
SOLUTIONTYPE=Sole
LANDINGPAGE=Billing
You need to also include the following to work well with the new pages.
USERSELECTEDFUNDINGSOURCE=CreditCard

Adding form and paypal to a website

I have made a website using bootstrap and now I want to add a form with a pay-with-Paypal button, which will redirect the user to Paypal for payment and send me the data filled in the form. How am I supposed to do it.
Any help is appreciated.
For the buttons themselves, you have here a pay-button and a donate one.
You will find a lot of info on the HTML variables PayPal page, too!

Is it possible to generate a paypal express button without form?

I have created a command to get a markup from Paypal API and it returns me a form with Paypal button and some hidden input fields. Is it possible to generate a Paypal express button without a form and contains URL including the item details?

PayPal Payment - Do a payment in one step

I have a form where people can order one single item for a fixed amount of money. Here are the steps:
customer fills out the form
customer hits submit and proceeds to the review page where he can check his inputs
in the review form should be a button to pay with paypal (button with own design and text)
customer hits this button, proceeds to paypal, makes his payment
after he paid successfully or not he should be redirected to the form on my site where he can see the result of his payment
wehter his payment succeeded or not he can see a message generated by the form application out of the PayPal return string
I tried it but the only thing I can do is that after he submits the form he logs into PayPal, hits the "continue" button and is redirected to my site where he can review his order again and needs to hit "Pay" again to get his order processed.
So all I want is that the customer does all the inputs and reviews on my site and after that he hits a "Pay" button in my own style and proceeds to PayPal where he pays the order without getting back to my site until the payment is done. Then he should be redirected to my site and receives the appropriate message.
What kind of PayPal function do I need?
Hope this was clear enough. Please let me know if you need further information. Thank you all in advance.
Paypal Express Checkout is what you are looking for, it will solve your problem
Follow the sample and guide:
Link to Code Sample
Link to Paypal Doc

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

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.