Module: Tamara::Payments
- Defined in:
- lib/tamara/api/payments.rb,
lib/tamara/api/payments/capture.rb
Defined Under Namespace
Classes: Capture
Class Method Summary collapse
Class Method Details
.capture(order_id:, total_amount:, shipping_info:, items: [], shipping_amount: nil, tax_amount: nil, discount_amount: nil, opts: {}) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/tamara/api/payments.rb', line 3 def self.capture(order_id:, total_amount:, shipping_info:, items: [], shipping_amount: nil, tax_amount: nil, discount_amount: nil, opts: {}) Tamara::Payments::Capture.call( order_id: order_id, total_amount: total_amount, shipping_info: shipping_info, shipping_amount: shipping_amount, tax_amount: tax_amount, discount_amount: discount_amount, items: items, opts: opts ) end |