class Bodega::PaymentMethod::Base
Attributes
options[RW]
order[RW]
Public Class Methods
new(order)
click to toggle source
# File lib/bodega/payment_method/base.rb, line 18 def initialize(order) self.order = order end
Public Instance Methods
checkout_url(success_url, cancel_url, params = {})
click to toggle source
# File lib/bodega/payment_method/base.rb, line 10 def checkout_url(success_url, cancel_url, params = {}) raise "Implement #{self.class.name}#checkout_url" end
complete!(options = {})
click to toggle source
# File lib/bodega/payment_method/base.rb, line 14 def complete!(options = {}) raise "Implement #{self.class.name}#complete!" end
shipping?()
click to toggle source
Does the payment method provide shipping details? If not, they’ll be editable at checkout.
# File lib/bodega/payment_method/base.rb, line 24 def shipping? true end