Method: Klarna::Checkout::Order#cancel
- Defined in:
- lib/klarna/checkout/order.rb
#cancel ⇒ Object
Cancels the order through Klarna API
87 88 89 90 91 92 93 |
# File 'lib/klarna/checkout/order.rb', line 87 def cancel unless @status == 'AUTHORIZED' raise Klarna::Checkout::Errors::OrderCancelError.new(@status, 'cancel_not_allowed') end cancel_order end |