spree_mercado_pago_payment_method 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -19,8 +19,8 @@ module Spree
|
|
19
19
|
private
|
20
20
|
def correct_order_state
|
21
21
|
(@order.state == 'payment' || @order.state == 'complete') &&
|
22
|
-
@order.payment_method &&
|
23
|
-
(@order.payment_method.type == "PaymentMethod::MercadoPago")
|
22
|
+
@order.payments.last.payment_method && @order.payments.m_method &&
|
23
|
+
(@order.payments.last.payment_method.type == "PaymentMethod::MercadoPago")
|
24
24
|
end
|
25
25
|
|
26
26
|
def advance_state
|