Sha256: d5fd71af7f306a4c1bc8b9c9b2511b1d1ac790fe2b46ef411036e00e79b7dd67
Contents?: true
Size: 466 Bytes
Versions: 5
Compression:
Stored size: 466 Bytes
Contents
module Workarea class Payment class Capture class Klarna include OperationImplementation def complete! transaction.response = Workarea::Klarna.gateway.capture(tender, transaction.amount) end def cancel! return unless transaction.success? transaction.cancellation = Workarea::Klarna.gateway.refund(tender, transaction.amount) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems