Sha256: 1b303a49302d8cadbdfae113c5226ee87198e0128c111c2002d2b9b860212d7d
Contents?: true
Size: 419 Bytes
Versions: 3
Compression:
Stored size: 419 Bytes
Contents
module Spree class PagseguroCheckoutWorker def perform(notification_code) transaction = PagSeguro::Transaction.find_by_notification_code( notification_code ) if transaction.errors.empty? @pagseguroCheckout = Spree::PagseguroCheckout.find_by! transaction_id: transaction.code @pagseguroCheckout.process! else # logger.error transaction.errors end end end end
Version data entries
3 entries across 3 versions & 1 rubygems