Module: Paypal::Helpers

Defined in:
lib/paypal/helpers/common.rb,
lib/paypal/helpers/rails.rb

Overview

This is a collection of helpers which aid in the creation of paypal buttons

Example:

<%= form_tag Paypal::Config.ipn_url %>

  <%= paypal_setup "Item 500", Money.us_dollar(50000), "[email protected]" %>
  Please press here to pay $500US using paypal. <%= submit_tag %>

<% end_form_tag %>

For this to work you have to include these methods as helpers in your rails application. One way is to add “include Paypal::Helpers” in your application_helper.rb See Paypal::Notification for information on how to catch payment events.

Defined Under Namespace

Modules: Common, Rails