/** * @throws \InvalidArgumentException * @return Payment */ protected function createNewPayment() { $payment = new Payment(); $payment->setIntent(Intent::SALE); $payment->setPayer($this->createNewPayer()); $payment->addTransaction($this->createNewTransaction()); return $payment; }
/** * @param $response * * @return Payment */ protected function factoryPaymentResponse(Response $response) { return $this->getSerializer()->deserialize($response->getBody(true), Payment::getClass(), RequestFormat::JSON); }
public function testExecutePayment() { $this->markTestIncomplete(); $this->assertInstanceOf(Payment::getClass(), $this->client->executePayment($this->payment)); }