public function test_retrieveIdentity() { $identity = new Identity($this->state); $identity->save(); $fetchedIdentity = Identity::retrieve($identity->id); $this->assertStringEndsWith($identity->id, $fetchedIdentity->getHref()); }
public static function setUpBeforeClass() { // TODO: identity must have a merchant account on DUMMY_V1 processor self::$identity = Identity::retrieve(SampleData::$identityId); // setup card $card = json_decode(self::PAYMENT_CARD_PAYLOAD, true); $card['identity'] = self::$identity->id; $card = new PaymentInstrument($card); $card->save(); self::$card = $card; }
public static function setUpBeforeClass() { self::$identity = Identity::retrieve(SampleData::$identityId); // TODO: identity must have a merchant account on DUMMY_V1 processor // TODO: if we're calling the api with wrong credentials, we get 500 instead of 403 $card = json_decode(self::PAYMENT_CARD_PAYLOAD, true); $card['identity'] = self::$identity->id; $card = new PaymentInstrument($card); $card->save(); self::$card = $card; }
public static function setUpBeforeClass() { // TODO: fetch this from the API via collection self::$identity = Identity::retrieve(SampleData::$identityId); }