Exemplo n.º 1
0
 /**
  * @param \Orm\Zed\Payone\Persistence\SpyPaymentPayone $paymentEntity
  *
  * @return \Spryker\Zed\Payone\Business\Api\Request\Container\CaptureContainer
  */
 public function mapPaymentToCapture(SpyPaymentPayone $paymentEntity)
 {
     $paymentDetailEntity = $paymentEntity->getSpyPaymentPayoneDetail();
     $captureContainer = new CaptureContainer();
     $captureContainer->setAmount($paymentDetailEntity->getAmount());
     $captureContainer->setCurrency($this->getStandardParameter()->getCurrency());
     $captureContainer->setTxid($paymentEntity->getTransactionId());
     return $captureContainer;
 }
Exemplo n.º 2
0
 /**
  * @return void
  */
 public function testEmptyCaptureContainer()
 {
     $container = new CaptureContainer();
     $this->assertCount(1, $container->toArray());
     // request set in container
 }