Method: ActiveMerchant::Billing::PaypalGateway#purchase
- Defined in:
- lib/active_merchant/billing/gateways/paypal.rb
#purchase(money, credit_card_or_referenced_id, options = {}) ⇒ Object
23 24 25 26 |
# File 'lib/active_merchant/billing/gateways/paypal.rb', line 23 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 |