Method: ActiveMerchant::Billing::PaypalGateway#purchase

Defined in:
lib/active_merchant/billing/gateways/paypal.rb

#purchase(money, credit_card_or_referenced_id, options = {}) ⇒ Object

[View source] [View on GitHub]

21
22
23
24
# File 'lib/active_merchant/billing/gateways/paypal.rb', line 21

def purchase(money, credit_card_or_referenced_id, options = {})
  requires!(options, :ip)
  commit define_transaction_type(credit_card_or_referenced_id), build_sale_or_authorization_request('Sale', money, credit_card_or_referenced_id, options)
end