This module adds PayPal Buy Now or Subscription buttons to product pages (on the Add to Cart form). These buttons redirect the customer immediately to PayPal for payment, bypassing the standard Ubercart checkout process. Order information (including the billing/delivery address) is obtained from the PayPal IPN.
To enable a product to be sold with PayPal Buy Now or Subscriptions, add and configure the 'PayPal Buy Now' or 'PayPal Subscription' product feature. The product feature includes settings for the button style, as well as for the product or subscription.
Note: This module has optional (but recommended) integration with the Subscriptions module.
In addition to the button added to the Add to Cart form, This module provides two methods to invoke the Buy Now or Subscription payment process:
1. Make a link to invoke payment by using the URL:
/uc_paypal_buttons/[node id]/[quantity]/[attribute id]/[option id]
Only the node id is required.
For example, to purchase node 12, use this URL:
http://example.com/uc_paypal_buttons/12
To purchase three of node 15 with some given attributes, use:
http://example.com/uc_paypal_buttons/12/3/1/3
Multiple attribute-option pairs can be used, for example:
http://example.com/uc_paypal_buttons/12/3/1/3/2/3
2. Embed the Add to Cart form with PHP.
You can add the Ubercart Add to Cart form to any page by using the drupal_get_form function:
drupal_get_form('uc_product_add_to_cart_form', $node);
For example, to print the HTML for this form for node 12, use:
$node = node_load(12);
print drupal_get_form('uc_product_add_to_cart_form', $node);
| Attachment | Size |
|---|---|
| uc_paypal_buttons-20080411.tar.gz | 17.36 KB |


Works great ! Beats using
Works great !
Beats using page redirects and auto-form submits to get them through the cart.
