public static function createPayer() { $payer = new Payer(); $payer->setPayment_method(self::$paymentMethod); $payer->setPayer_info(PayerInfoTest::createPayerInfo()); $payer->setFunding_instruments(array(FundingInstrumentTest::createFundingInstrument())); return $payer; }