commerce_node_pay
For users new to Drupal, Commerce Node Pay bridges the gap between content creation and e-commerce. Usually, Drupal keeps "articles" and "products" separate; this module connects them. It provides a straightforward solution for site owners who want to charge users a fee before their submitted content (nodes) becomes visible to the public.
Features
Pay-to-Publish Workflow: Automatically holds a node as "unpublished" until a successful checkout is completed.
Commerce Integration: Leverages the full power of Drupal Commerce, including multiple payment gateways, taxes, and promotions.
Per-Content-Type Pricing
Automatic Publishing: Once the order status reaches "Completed," the node is automatically published without manual admin intervention.
Use Cases: Classified ad sites, business directories, sponsored guest posts, or event listings.
Post-Installation
After enabling the module, you can configure the pay-to-publish workflow through a centralized settings page. Please note the specific requirement for your product variations:
Navigate to Configuration: Go to Configuration > Commerce > Commerce Node Pay Settings.
Configure Mappings: On this form, you will select:
The Content Type you want to monetize.
The Product Variation Type (once this is chosen, the Duration trait will be automatically injected into it).
The specific Product Variation default duration.
How it Works: Once configured, when a user creates a node of the selected type, the module adds the linked product variation to their cart and redirects them to checkout. The node remains unpublished until the payment is confirmed.
Permissions: Ensure that users have the permission to "Access checkout" and create the specific content types you have mapped.
Additional Requirements
Drupal Commerce: This module requires the Commerce suite (specifically the Checkout and Order modules) to function.
Recommended modules/libraries
Commerce Shipping: If you want to collect physical billing addresses during the post-payment process.
Similar projects
Commerce License: While powerful, it is often overly complex for simple "one-off" post payments. Commerce Node Pay is lighter and focused specifically on the Node entity.
Webform Share/Pay: This works for Webforms, whereas our module is built for the native Drupal Node system, ensuring better compatibility with standard themes and Search API.
Community Documentation
Video Walkthrough: https://www.youtube.com/watch?v=wLSwcWhrA04