Class: MangoPay::PayIn::PayPal::Web
- 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
-
.add_paypal_tracking_information(pay_in_id, params, idempotency_key = nil) ⇒ Object
Add tracking information to a PayPal PayIn (add the tracking number and carrier for LineItems shipments.) Caution – Tracking information cannot be edited You can’t modify the TrackingNumber, Carrier, or NotifyBuyer once added.
- .create_data_collection(params, idempotency_key = nil) ⇒ Object
- .create_v2(params, idempotency_key = nil) ⇒ Object
- .get_data_collection(data_collection_id, idempotency_key = nil) ⇒ Object
- .url ⇒ Object
Methods included from HTTPCalls::Create
Methods inherited from Resource
Class Method Details
.add_paypal_tracking_information(pay_in_id, params, idempotency_key = nil) ⇒ Object
Add tracking information to a PayPal PayIn (add the tracking number and carrier for LineItems shipments.) Caution – Tracking information cannot be edited You can’t modify the TrackingNumber, Carrier, or NotifyBuyer once added. You can only send a unique tracking number once.
135 136 137 |
# File 'lib/mangopay/pay_in.rb', line 135 def self.add_paypal_tracking_information(pay_in_id, params, idempotency_key = nil) MangoPay.request(:put, "#{MangoPay.api_path}/payins/#{pay_in_id}/trackings", params, {}, idempotency_key) end |
.create_data_collection(params, idempotency_key = nil) ⇒ Object
139 140 141 |
# File 'lib/mangopay/pay_in.rb', line 139 def self.create_data_collection(params, idempotency_key = nil) MangoPay.request(:post, "#{MangoPay.api_path}/payins/payment-methods/paypal/data-collection", params, {}, idempotency_key) end |
.create_v2(params, idempotency_key = nil) ⇒ Object
127 128 129 |
# File 'lib/mangopay/pay_in.rb', line 127 def self.create_v2(params, idempotency_key = nil) MangoPay.request(:post, "#{MangoPay.api_path}/payins/payment-methods/paypal", params, {}, idempotency_key) end |
.get_data_collection(data_collection_id, idempotency_key = nil) ⇒ Object
143 144 145 |
# File 'lib/mangopay/pay_in.rb', line 143 def self.get_data_collection(data_collection_id, idempotency_key = nil) MangoPay.request(:get, "#{MangoPay.api_path}/payins/payment-methods/paypal/data-collection/#{data_collection_id}") end |
.url ⇒ Object
123 124 125 |
# File 'lib/mangopay/pay_in.rb', line 123 def self.url(*) "#{MangoPay.api_path}/payins/paypal/#{CGI.escape(class_name.downcase)}" end |