Method: Klarna::Checkout::Order#capture
- Defined in:
- lib/klarna/checkout/order.rb
#capture ⇒ Object
Captures the order through Klarna API
78 79 80 81 82 83 84 |
# File 'lib/klarna/checkout/order.rb', line 78 def capture unless @status == 'AUTHORIZED' raise Klarna::Checkout::Errors::OrderCaptureError.new(@status, 'capture_not_allowed') end capture_order end |