Class: MangoPay::PayIn::PayPal::Web

Inherits:
Resource
  • Object
show all
Includes:
HTTPCalls::Create
Defined in:
lib/mangopay/pay_in.rb

Overview

See docs.mangopay.com/api-references/payins/paypal-payin/ # DEPRECATED: ‘create’ function is now deprecated. Please use the ‘create_v2’ function - MangoPay::PayIn::PayPal::Web.create_new(params)

Class Method Summary collapse

Methods included from HTTPCalls::Create

included

Methods inherited from Resource

class_name

Class Method Details

.create_v2(params, idempotency_key = nil) ⇒ Object



112
113
114
# File 'lib/mangopay/pay_in.rb', line 112

def self.create_v2(params, idempotency_key = nil)
  MangoPay.request(:post, "#{MangoPay.api_path}/payins/payment-methods/paypal", params, {}, idempotency_key)
end

.urlObject



108
109
110
# File 'lib/mangopay/pay_in.rb', line 108

def self.url(*)
  "#{MangoPay.api_path}/payins/paypal/#{CGI.escape(class_name.downcase)}"
end