Active
Project:
Pay
Version:
6.x-1.0-alpha6
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
28 Feb 2011 at 17:05 UTC
Updated:
17 Jan 2013 at 20:31 UTC
Jump to comment: Most recent file
The module description page says:
The Node Payments module, included with Pay, demonstrates the use of this functionality by allowing you to attach or create payment forms on any node type. This is useful for pledge drives and other donation campaigns.
I can find no documentation on how to achieve this, and no combination of settings that I have found actually adds a payment form to my node creation page. Can anyone comment on this?
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | pay_node-1076246.patch | 3.91 KB | univate |
Comments
Comment #1
Barry Madore commentedWe recently posted two screencasts that demonstrate how to configure the Pay, Donate and Authorize.net modules to create donation forms and attach them to content on your site.
The second screencast, available at http://www.advantagelabs.com/easy-content-specific-payments-drupal covers your specific question. That blog post and screencast reference the previous screencast which covers the basic configuration steps in more detail. We recommend watching that one first. It is available at http://www.advantagelabs.com/node/1123/.
We've also begun to create written documentation on drupal.org. There is a page -- http://drupal.org/node/1044170 -- in the Site Building Guide that covers the same material as the first screencast. We'd be interested in your feedback and help in creating more and better documentation on how to use the Payment API and related modules. Info about your use cases, documentation on your experience and any edits or new documentation pages you can provide will be most helpful to all of us, developers and users alike.
Thanks!
Barry Madore
Advantage Labs, Inc.
Comment #2
charlie-s commentedThanks for the detailed follow up, the links / screencasts are very helpful!
I think I am thrown off by 2 things:
1) The word "Donation", since we're charging users a fee to create a node. I now understand that I can just use the Pay Donate module to get forms to actually appear on these pages.
2) The Payment form appears after the node has been created.
Does this make sense?
Comment #3
Barry Madore commentedI think I understand where you're headed. The functionality you are looking for is available when you enable the Node Payments module as described in the second video I referred you to: http://www.advantagelabs.com/easy-content-specific-payments-drupal. You just need to enable a different option from the one I used in the example.
The settings you need to configure are located in: Site Configuration > Payment Settings > Node Settings (available if you have enabled the Node Payments module as demonstrated in the video). Under "Available node payment models" on this page is the "Node creation" option. Make sure this is checked. This will allow you to configure the Payment settings in a specific content type to append a payment form to the node add form so that a visitor needs to complete a payment transaction at the time of creating the node to submit the node content. I think this is the behavior you are looking for, right?
The part of the video that shows where this configuration is located starts about 4:30 in. While I did not demonstrate the Node Creation option in the video, you should be able to find this option, enable it and explore the configuration for your content type to use it.
Hope this helps!
Comment #4
univate commentedIt took me a while to work out how to get the form showing up on the node creation form and currently not entirely sure how I did it.
I know the payment form isn't showing up for uid#1, I needed to make sure I had a separate bowser with an anonymous user setup with permission to create node and also make payments. I also had to configure the node to take take payments on display and then disable the display option as it doesn't work with both. Can't even have different content types accepting payments in different way. It appears I need to choose side wide to only accept payments on node creation or node display.
I think the pay on node creation needs a bit of work. There is also no way to set a price on each node content type.
Comment #5
charlie-s commentedThanks for posting your experience. I ended up building a custom module to display a form for Authnet's Direct Post Method and used hook_nodeapi to deal with the response (success or failure). Just couldn't get the form to display on node creation pages.
This also keeps me out of PCI compliance issues.
Comment #6
univate commentedActually the reason that node create doesn't work is that the code is commented out in includes/pay_node.admin.inc
I am working on this code so will try and upload a patch.
Comment #7
darrellduane commentedI also am wanting this functionality and working to get it fixed. Lets chat on #drupal_pay IRC channel, or collaborate more here. I've checked out of git from master and found all of Vauxia's and Jeremiah's latest fixes....thanks!
I found a few typos in if() statements that only have one '=' instead of '==' on lines 243 and 250 of pay_node.module. I hope to get a patch file together by the end of the day.
Comment #8
darrellduane commentedI've created a Google Doc for sharing notes about the Pay module, I hope to build up some documentation about the various moving parts of the API:
https://docs.google.com/document/d/1UNmVv1a3NiRu6ur_1q_vbRZ4l_9tqQ0FZkor...
Comment #9
univate commentedOne issue with payments on node creation is that if the payment fails the node should not be created, at the moment it still gets created.
Comment #10
darrellduane commentedI think that should be an optional setting--I bet there are some cases where the node still be created.
Comment #11
univate commentedThe following is a patch of the changes I have currently made to pay_node to get payments on node creation functional.
Comment #12
fnapo commentedVery, very interesting patch.
I also spent some hours to figure out how to view payment form on a node/add page.
I tested the patch, but it gives me only price and comment fields. And it makes disappearing the full menu of payment options from the content type section.
I'm also unable to get webform_pay to appear in the node payment forms, I only get "donate". I like this module, more than lm_paypal, but I like to see it fully working!
If I can test anything else, let me know. Thanks
Comment #13
whan commentedApplied the patch. The donate form was included to the create Node Form with only the amount and comments fields. However, user not directed to the Paypal for payment after node submit.
The Paypal redirection for payment for donate form included in the Node Display works.!!
Thanks.
Comment #14
stenjo commentedI have also started some documentation work at #1193276: Developer documentation that really needs some attention.
If we all cooperate here we could create something great :-)
Comment #15
adrianmak commentedIn drupalcon denver 2012, there is a slide showing a kickstarter like micro-payment.
Any how/tips to create such a scenario.
Comment #16
Syd Barrett commentedWhat about Drupal 7? Is this module reliable?