Sha256: 917fbc0b885d5ff7bb25e2aae8895da9f681ef8c309d0fc47049b250c0309d6b
Contents?: true
Size: 555 Bytes
Versions: 13
Compression:
Stored size: 555 Bytes
Contents
module Spree class PaymentMethod::PurchaseOrder < PaymentMethod def payment_source_class Spree::PurchaseOrder end def authorize(*args) simulated_successful_billing_response('Purchase Order: Success') end def void(*args) simulated_successful_billing_response end def source_required? true end def auto_capture? false end private def simulated_successful_billing_response(message = "") ActiveMerchant::Billing::Response.new(true, message, {}, {}) end end end
Version data entries
13 entries across 13 versions & 1 rubygems