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