lib/mangopay/pay_in.rb in mangopay-3.14.0 vs lib/mangopay/pay_in.rb in mangopay-3.15.0

- old
+ new

@@ -99,17 +99,25 @@ end module PayPal # See https://docs.mangopay.com/api-references/payins/paypal-payin/ + # <b>DEPRECATED</b>: Please use the Direct payment method. Web will be removed in a future version. class Web < Resource include HTTPCalls::Create def self.url(*) "#{MangoPay.api_path}/payins/paypal/#{CGI.escape(class_name.downcase)}" end end + class Direct < Resource + include HTTPCalls::Create + def self.url(*) + "#{MangoPay.api_path}/payins/payment-methods/paypal" + end + end + end module Payconiq class Web < Resource @@ -134,10 +142,10 @@ module GooglePay class Direct < Resource include HTTPCalls::Create def self.url(*) - "#{MangoPay.api_path}/payins/googlepay/#{CGI.escape(class_name.downcase)}" + "#{MangoPay.api_path}/payins/payment-methods/googlepay" end end end module Mbway