lib/opay/payable.rb in opay-1.0.7 vs lib/opay/payable.rb in opay-1.0.8

- old
+ new

@@ -20,9 +20,10 @@ def prepare_payment if payment.blank? create_payment!(provider: 'payu', amount: amount) else + raise 'Payment was finished' if payment.finished? payment.update_attribute(:session_id, Payment.generate_session_id) payment end end