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!
Related
I need help please.
I have a WordPress business directory that the subscriber completes the listing form and clicks submit which goes to admin for approval to advertise their business on my website. Please see link
https://mercatoposto.com/submit-listing/category/
I have added PayPal plugin for them to pay after listing, clearly shown on the user account page, however this is totally ignored and they logout.
Is there a way that when the form is submitted to admin, the subscriber is redirected to PayPal gateway to pay? I want it that they cannot logout of the website until they complete the transaction.
Appreciate a responsive code please, many thanks.
Regards,
Tina
I want it that they cannot logout of the website until they complete the transaction.
Sure, just install a WordPress plugin that forces a browser logged into your site to remain open and displayed on the user's device until they make a PayPal payment....
What you are asking for makes no sense at all.
On approval of something unpaid for, send them an email informing them that what they submitted won't provide any service until they make a payment, and in such an email have a link to where they can make that payment.
To your earlier question of wanting to redirect them after they submit a form, that is also possible. It'll have to be done from whatever the WordPress page is after they submit that form. Of course, just because you redirect them does not mean they will pay.
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
In my site I added a Donate button, generated from paypal. When it is clicked, the user is redirected to paypal. Then, he might or might not donate to me. However, if he does, I want to add him and the amount he donated to my database. Is there a way I can do that?
You could use IPN to trigger a POST to your database with the information.
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.
I have paypal donate button and I wanna send hidden note with it.
How can I add it?
Thanks
PayPal has documentation on advanced donate buttons.
Step 5. could be for you:
Add advanced variables to the HTML
code of your payment button
(optional).
If you are familiar with the HTML
programming and the advanced HTML
variables supported by Website
Payments Standard payment buttons, you
can enter them here. Select the
checkbox, and then enter the variables
in the text box that appears below it.
Enter any advanced HTML variables in
the following, name/value-pair format:
variableName=allowableValue
On a side note, connecting your Forum's user ID with the real name you get from a PayPal donation could be a privacy issue, even a legal problem in some jurisdictions. I'm quite sure it would be one here in Germany, even though the users who donate to you will probably not mind you knowing who they are.