Closed (fixed)
Project:
Webform
Version:
6.x-3.2
Component:
Miscellaneous
Priority:
Critical
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
6 Sep 2010 at 20:18 UTC
Updated:
21 Oct 2010 at 16:05 UTC
I have created a webform using this module and the client would like to add PayPal options which will be required on submission of the form. I have created PayPal buttons, so I have 2 questions:
1) How can I simply add the PayPal buttons I have created to the webform?
2) If I wanted to create a mandatory payment option via PayPal, how can I do this?
Much appreciation.
Josh
Comments
Comment #1
allisonk commentedI am working on this too.
It seems some folks were developing a module - but it's only for 5.x:
http://drupal.org/project/webform_payments
And there's this thread too:
http://drupal.org/node/275857
But I'm not sure how it works or how to require certain fields...
Comment #2
allisonk commentedThere seems to be a working solution here - but I haven't tried it:
http://drupal.org/node/543674
Comment #3
quicksketchWebform does not (and won't) support any payment systems directly. Your best bet is to use an add-on module like allisonk has suggested.
Comment #4
JoshR commentedWhat about doing something like viewing the page as full html rather than filtered html and manually inputting the code for the PayPal button on the webform page? Has anyone tried this?
Comment #5
quicksketchYou can always theme your forms (as described in theming.txt) to manually add your own HTML.
Comment #6
JoshR commentedHow can I simply add a link on the webform? (I should be able to use this to post the PayPal info)
-J
Comment #7
quicksketchAdd a "markup" component and put the link in it.
Comment #8
JoshR commentedThanks for your quick responses! I will try these options, but as far as I am concerned this issue has been resolved.
Comment #9
shai.avi@gmail.com commentedI have a follow up question:
PayPal button code is written as a 'post' method and I'd like that to open another window/tab and for the user to complete that transaction on the paypal site; and I have a set of fields in my webform for which I have a submit button that I expect my user to fill the data and hit submit, but now, with the paypal code, clicking the paypal button submits (posts) the form, and doesn't go to the paypal site.
http://www.campgilboa.org/alumni-event-ad
Thank you!
Comment #10
tstermitz@joshR
Yes, this works pretty well. You would create the paypal button using php to in the return page when they submit the webform. Put something like this in the "Confirmation message or redirect URL" window:
To deal with the calculations based on buttons, I use some javascript code inserted into the "Description" window of the webform page. Something like this (But, don't blame me if my code fails or is ugly):
I'm trying to figure out how to receive the paypal "Payment Data Transfer", and populate the payment completed and payment date fields.
Comment #11
domesticat commentedA note for anyone who finds this thread and decides to try implementing it: for the version of webform that we were running, I had to change the include_once() line to point to a slightly different place:
include_once(drupal_get_path('module', 'webform') .'/includes/webform.submissions.inc');Thanks for posting the code; it got me out of a bind.