def process(order, credentials = Account.credentials)
      validate_required_attributes!

      AlphaCard.request(params_for_sale(order), credentials)
    end
def process(order, credentials = Account.credentials)
      validate_required_attributes!

      AlphaCard.request(params_for_sale(order), credentials)
    end
Creates the sale transaction for the specified <code>AlphaCard::Order</code>.

 @param order [AlphaCard::Order]
    An <code>AlphaCard::Order</code> object.

 @param credentials [Hash]
   Alpha Card merchant account credentials.

 @return [AlphaCard::Response]
   AlphaCard Gateway response with all the information about transaction.

 @raise [AlphaCard::InvalidObjectError]
   Exception if one of required attributes doesn't specified.

 @example
   order = AlphaCard::Order.new(id: 1, description: 'Test order')
   sale = AlphaCard::Sale.new(card_expiration_date: '0117', card_number: '4111111111111111', amount: '5.00' )
   sale.create(order)

   #=> #<AlphaCard::Response:0x1a0fda ...>