services/catarse/app/models/payment.rb
# Check current status on pagarme and
# move pending payment to deleted state
Check current status on pagarme and
move pending payment to deleted state
Check current status on pagarme and move pending payment to deleted state
def move_to_trash
    if %w[pending waiting_payment].include?(current_transaction_state)
      trash
    else
      change_status_from_transaction
    end
  end
def move_to_trash if %w[ pending waiting_payment ] . include? ( current_transaction_state ) trash else change_status_from_transaction end end
Check current status on pagarme and
move pending payment to deleted state
Check current status on pagarme and move pending payment to deleted state