lib/offsite_payments/integrations/two_checkout.rb
# Determine status based on parameter set, if the params include a fraud status we know we're being
# notified of the finalization of an order (an INS message)
# If the params include 'credit_card_processed' we know we're being notified of a new order being inbound,
# which we handle in the deferred demo sale scenario.
Determine status based on parameter set, if the params include a fraud status we know we're being
notified of the finalization of an order (an INS message)
If the params include 'credit_card_processed' we know we're being notified of a new order being inbound,
which we handle in the deferred demo sale scenario.
Determine status based on parameter set if the params include a fraud status we know we ' re being notified of the finalization of an order ( an INS message ) If the params include ' credit_card_processed ' we know we ' re being notified of a new order being inbound which we handle in the deferred demo sale scenario .
def status
          if params['fraud_status'] == 'pass' || params['credit_card_processed'] == 'Y'
            'Completed'
          elsif params['fraud_status'] == 'wait'
            'Pending'
          else
            'Failed'
          end
        end
def status if params [ 'fraud_status' ] == 'pass' || params [ 'credit_card_processed' ] == 'Y' 'Completed' elsif params [ 'fraud_status' ] == 'wait' 'Pending' else 'Failed' end end
Determine status based on parameter set, if the params include a fraud status we know we're being
notified of the finalization of an order (an INS message)
If the params include 'credit_card_processed' we know we're being notified of a new order being inbound,
which we handle in the deferred demo sale scenario.
Determine status based on parameter set if the params include a fraud status we know we ' re being notified of the finalization of an order ( an INS message ) If the params include ' credit_card_processed ' we know we ' re being notified of a new order being inbound which we handle in the deferred demo sale scenario .