/**
  * @return void
  */
 public function testEmptyDebitContainer()
 {
     $container = new DebitContainer();
     $this->assertCount(1, $container->toArray());
     // request set in container
 }
Exemple #2
0
 /**
  * @param \Orm\Zed\Payone\Persistence\SpyPaymentPayone $paymentEntity
  *
  * @return \Spryker\Zed\Payone\Business\Api\Request\Container\DebitContainer
  */
 public function mapPaymentToDebit(SpyPaymentPayone $paymentEntity)
 {
     $debitContainer = new DebitContainer();
     $debitContainer->setTxid($paymentEntity->getTransactionId());
     $debitContainer->setSequenceNumber($this->getNextSequenceNumber($paymentEntity->getTransactionId()));
     $debitContainer->setCurrency($this->getStandardParameter()->getCurrency());
     $debitContainer->setAmount($paymentEntity->getSpyPaymentPayoneDetail()->getAmount());
     return $debitContainer;
 }