Class/Module Index [+]

Quicksearch

ActiveMerchant::Billing::PayflowGateway

Constants

RECURRING_ACTIONS

Public Instance Methods

authorize(money, credit_card_or_reference, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/payflow.rb, line 16
def authorize(money, credit_card_or_reference, options = {})
  request = build_sale_or_authorization_request(:authorization, money, credit_card_or_reference, options)

  commit(request, options)
end
cancel_recurring(profile_id) click to toggle source
# File lib/active_merchant/billing/gateways/payflow.rb, line 63
def cancel_recurring(profile_id)
  request = build_recurring_request(:cancel, 0, :profile_id => profile_id)
  commit(request, options.merge(:request_type => :recurring))
end
credit(money, identification_or_credit_card, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/payflow.rb, line 28
def credit(money, identification_or_credit_card, options = {})
  if identification_or_credit_card.is_a?(String)
    deprecated CREDIT_DEPRECATION_MESSAGE
    # Perform referenced credit
    refund(money, identification_or_credit_card, options)
  else
    # Perform non-referenced credit
    request = build_credit_card_request(:credit, money, identification_or_credit_card, options)
    commit(request, options)
  end
end
express() click to toggle source
# File lib/active_merchant/billing/gateways/payflow.rb, line 73
def express
  @express ||= PayflowExpressGateway.new(@options)
end
purchase(money, credit_card_or_reference, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/payflow.rb, line 22
def purchase(money, credit_card_or_reference, options = {})
  request = build_sale_or_authorization_request(:purchase, money, credit_card_or_reference, options)

  commit(request, options)
end
recurring(money, credit_card, options = {}) click to toggle source

Adds or modifies a recurring Payflow profile. See the Payflow Pro Recurring Billing Guide for more details: www.paypal.com/en_US/pdf/PayflowPro_RecurringBilling_Guide.pdf

Several options are available to customize the recurring profile:

  • profile_id - is only required for editing a recurring profile

  • starting_at - takes a Date, Time, or string in mmddyyyy format. The date must be in the future.

  • name - The name of the customer to be billed. If not specified, the name from the credit card is used.

  • periodicity - The frequency that the recurring payments will occur at. Can be one of

:bimonthly, :monthly, :biweekly, :weekly, :yearly, :daily, :semimonthly, :quadweekly, :quarterly, :semiyearly

  • payments - The term, or number of payments that will be made

  • comment - A comment associated with the profile

# File lib/active_merchant/billing/gateways/payflow.rb, line 55
def recurring(money, credit_card, options = {})
  options[:name] = credit_card.name if options[:name].blank? && credit_card
  request = build_recurring_request(options[:profile_id] ? :modify : :add, money, options) do |xml|
    add_credit_card(xml, credit_card) if credit_card
  end
  commit(request, options.merge(:request_type => :recurring))
end
recurring_inquiry(profile_id, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/payflow.rb, line 68
def recurring_inquiry(profile_id, options = {})
  request = build_recurring_request(:inquiry, nil, options.update( :profile_id => profile_id ))
  commit(request, options.merge(:request_type => :recurring))
end
refund(money, reference, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/payflow.rb, line 40
def refund(money, reference, options = {})
  commit(build_reference_request(:credit, money, reference, options), options)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.