"create_time", "sort_order" => "desc", "merchant_id" => "MyStore1" // Filtering by MerchantId set during CreateCreditCard. ); $cards = CreditCard::all($params, $apiContext); } catch (Exception $ex) { // NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY ResultPrinter::printError("List All Credit Cards", "CreditCardList", null, $params, $ex); exit(1); } // NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY ResultPrinter::printResult("List All Credit Cards", "CreditCardList", null, $params, $cards); return $card;