Exemple #1
0
 /**
  * @param \Generated\Shared\Transfer\PayoneCreditCardTransfer $creditCardData
  *
  * @return \Spryker\Zed\Payone\Business\Api\Response\Container\CreditCardCheckResponseContainer
  */
 public function creditCardCheck(PayoneCreditCardTransfer $creditCardData)
 {
     /** @var \Spryker\Zed\Payone\Business\Payment\MethodMapper\CreditCardPseudo $paymentMethodMapper */
     $paymentMethodMapper = $this->getRegisteredPaymentMethodMapper($creditCardData->getPayment()->getPaymentMethod());
     $requestContainer = $paymentMethodMapper->mapCreditCardCheck($creditCardData);
     $this->setStandardParameter($requestContainer);
     $rawResponse = $this->executionAdapter->sendRequest($requestContainer);
     $responseContainer = new CreditCardCheckResponseContainer($rawResponse);
     return $responseContainer;
 }
Exemple #2
0
 /**
  * @param \Generated\Shared\Transfer\PayoneCreditCardTransfer $payoneCreditCardTransfer
  *
  * @return \Spryker\Zed\Payone\Business\Api\Request\Container\CreditCardCheckContainer
  */
 public function mapCreditCardCheck(PayoneCreditCardTransfer $payoneCreditCardTransfer)
 {
     $creditCardCheckContainer = new CreditCardCheckContainer();
     $creditCardCheckContainer->setAid($this->getStandardParameter()->getAid());
     $creditCardCheckContainer->setCardPan($payoneCreditCardTransfer->getCardPan());
     $creditCardCheckContainer->setCardType($payoneCreditCardTransfer->getCardType());
     $creditCardCheckContainer->setCardExpireDate($payoneCreditCardTransfer->getCardExpireDate());
     $creditCardCheckContainer->setCardCvc2($payoneCreditCardTransfer->getCardCvc2());
     $creditCardCheckContainer->setCardIssueNumber($payoneCreditCardTransfer->getCardIssueNumber());
     $creditCardCheckContainer->setStoreCardData($payoneCreditCardTransfer->getStoreCardData());
     $creditCardCheckContainer->setLanguage($this->getStandardParameter()->getLanguage());
     return $creditCardCheckContainer;
 }