I want my users to be able to choose the amount before clicking on the "pay now" PayPal button. On the page to build such button on PayPal website, one can add custom fields and call it "amount", but the value entered in this field will not be taken into account when users click the button: they are directed to PayPal website to validate payment, however the amount is zero.
How to create an amount field so that when the user enters a value X and clicks the button, this value X appears as the amount on PayPal payment page?
If you post a sample of the button code you're working with I could adjust it for you accordingly. It sounds like you just need to set something like the following in your code.
<input type="text" name="amount" value="" />
That would make a text field display so the person could enter the amount they want, and since the name is amount, when posted to PayPal it would see it the same as if it were a hidden field.
The easiest way to allow your customers to choose the payment amount is to simply leave the amount field blank when creating the button in the button factory. No custom fields are necessary. The customer will be prompted to enter an "item Price on the hosted checkout page and that is what the customer will pay unless you have profile tax or shipping enabled.
Related
How can i add fixed value donation paypal if no business account, all i have is a button id, i'd like to add fixed amount when a user clicks on an image. Any ideeas how to do it?
You can create a URL like this
https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=YOUR_EMAIL_ACCOUNT¤cy_code=USD&amount=YOUR_FIXED_AMOUNT
This will take user to the Donation page with amount filled in.
Also, you can do the same here - paypal.com/donate/buttons
I see how to add a select box for pre-determined recurring donation/subscription amounts but can there also be an option for the user to decide how much they wish to donate (and perhaps how frequently)?
Thanks
With Donate and Buy Now payment buttons your buyers can enter their own price to pay on the PayPal checkout page. You can accomplish that by just leaving the amount value empty.
Subscription buttons require that an amount (the a3 variable for Subscriptions) value be provided during the redirect to PayPal so if you leave the field blank you would get an error. However, if you change the a3 input type to be text instead of hidden in your HTML form buyers can enter the amount on a text field on your website before being redirected to PayPal.
I want to create a simple form where customers can upload a pdf and then press a pay now PayPal button. Upon opening the page (or upload), a random reference number will be assigned to the button. Once the PayPal "Pay now" button is pushed, the reference number should be passed through to me alongside the payment info such as mailing address, etc.
How do I create a customized button that takes a random number as a reference into the payment info? Thanks for any help.
The custom parameter does this with PayPal.
I.e. <input type="hidden" name="custom" value="aaaaaaaaaaa111111222222bbbbbb">.
See also this link for information on how this applies to PayPal IPN.
I have a widget called "ticket", Event Organizer uses ticket widget to sell tickets online.
When event organizer select ticket widget he will enter the ticket name,ticket cost,quantity of tickets,
and pay pal account id, after that he clicks on create ticket button it should place a button say "buy now" and
organizers publishes the page.
At the other end when attendee clicks on "buy now" button it will redirect him to payment process, and gets
the payment process done.After the successful transaction the money has to added to event organizers
account and the number of tickets sold should be decremented in my web application.
Solutions:I have tried with "Buy Now Button" using JavaScript but i think it doesn't works out for our application.
Because here the organizer sells his tickets on our application ,so he needs to create his own button and place it
on our web application that is not to be any perfect idea
So kindly help me out in figuring out the right way.
Its not like that every seller wont need to create their own button instead you can pass his paypal email id in the paypal form you generate
<input type ="hidden" name="business" value="seller_email_id" />
This will transfer the amount in that sellers account.
I want to create PayPal button with dynamic price (depending from the item)
and hidden notify url.
The "amount" input is not working with saved and encrypted buttons,
but if I use plain text the notify_url is visible in the code.
Is the a way it to be hidden or encrypted and in the same time to have
working amount input
You don't have to specify the notify_url in code, specifying the notify_url as a hidden input only overrides the one that you have specified in your paypal account. About the price, there are lots of possibilities with paypal starting from creating a simple "buy now" button with dropdowns above to select price+product to paypal api's where you can generate buttons in your application