Пример #1
0
 /**
  * Get the raw data array for this message. The format of this varies from gateway to
  * gateway, but will usually be either an associative array, or a SimpleXMLElement.
  *
  * @return mixed
  */
 protected function buildData()
 {
     $transaction = $this->buildTransaction();
     $purchase = new Purchase($transaction);
     return Job::createPurchaseJob($this->getSignature(), $purchase);
 }
Пример #2
0
 /**
  * @return Job
  */
 protected function buildData()
 {
     $transaction = $this->buildTransaction();
     $bookBack = new BookBack($transaction);
     return Job::createBookBackJob($this->getSignature(), $bookBack);
 }
Пример #3
0
 /**
  * @return Job
  */
 protected function buildData()
 {
     $transaction = $this->buildTransaction();
     $reversal = new Reversal($transaction);
     return Job::createReversalJob($this->getSignature(), $reversal);
 }
 /**
  * Get the raw data array for this message. The format of this varies from gateway to
  * gateway, but will usually be either an associative array, or a SimpleXMLElement.
  *
  * @return mixed
  */
 protected function buildData()
 {
     $transaction = $this->buildTransaction();
     $preauthorization = new Preauthorization($transaction);
     return Job::createPreauthorizationJob($this->getSignature(), $preauthorization);
 }
 /**
  * @depends testPurchaseRequest
  * @large
  * @param string $guWid
  * @return string
  */
 public function testReversalRequest($guWid)
 {
     $transaction = new Transaction();
     $transaction->id = '9457892347623478';
     $transaction->guWid = $guWid;
     $reversal = new Reversal($transaction);
     $job = Job::createReversalJob(self::SIGNATURE, $reversal);
     $request = new Request($job);
     $body = $this->serializer->serialize(WireCard::createWithRequest($request), 'xml');
     $response = $this->client->send($this->createRequest($body));
     /** @var WireCard $wireCard */
     $wireCard = $this->serializer->deserialize($response->getBody(true), 'Wirecard\\Element\\WireCard', 'xml');
     $response = $wireCard->response;
     $this->assertTrue($response->isSuccessful());
     $this->assertNull($response->getMessage());
 }
 /**
  * @inheritdoc
  */
 protected function buildData()
 {
     $transaction = $this->buildTransaction();
     $check = new EnrollmentCheck($transaction);
     return Job::createEnrollmentJob($this->getSignature(), $check);
 }
Пример #7
0
 /**
  * @return Job
  */
 protected function buildData()
 {
     $transaction = $this->buildTransaction();
     $query = new Query($transaction);
     return Job::createQueryJob($this->getSignature(), $query);
 }
Пример #8
0
 /**
  * @return Job
  */
 protected function buildData()
 {
     $transaction = $this->buildTransaction();
     $capture = new Capture($transaction);
     return Job::createCaptureJob($this->getSignature(), $capture);
 }
 protected function buildData()
 {
     $transaction = $this->buildTransaction();
     $originalCredit = new OriginalCredit($transaction);
     return Job::createOriginalCreditJob($this->getSignature(), $originalCredit);
 }