Sha256: 6f1d48363e48d2323975bd9d0969bd04d51ff51585f4d2af100777059aa34c7f
Contents?: true
Size: 638 Bytes
Versions: 4
Compression:
Stored size: 638 Bytes
Contents
# commented-out as this is too invasive at the moment # (assumes paypal is the only payment method available in your store) =begin CheckoutController.class_eval do def edit if ((@order.state == "payment") && @order.valid?) puts "valid, processing" if @order.payable_via_paypal? puts "payable via paypal, adding payment" payment = Payment.new payment.amount = @order.total payment.payment_method = Order.paypal_payment_method @order.payments << payment payment.started_processing render(:partial => 'checkout/paypal_checkout') end end end end =end
Version data entries
4 entries across 4 versions & 1 rubygems