Method: ActiveMerchant::Billing::PaypalGateway#purchase
- Defined in:
- lib/active_merchant/billing/gateways/paypal.rb
permalink #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, = {}) requires!(, :ip) commit define_transaction_type(credit_card_or_referenced_id), ('Sale', money, credit_card_or_referenced_id, ) end |