fix rails error in payment processing