Commit c152a338 authored by Rik ter Beek's avatar Rik ter Beek

Do not validate card data

Card data can not be validated on the server because of CSE you only receive encrypted data.
parent c5da1fdf
......@@ -162,6 +162,20 @@ class Cc extends \Magento\Payment\Model\Method\Cc
return $this;
}
/**
* Validate payment method information object
*
* @return $this
* @throws \Magento\Framework\Exception\LocalizedException
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
* @SuppressWarnings(PHPMD.NPathComplexity)
*/
public function validate()
{
// validation only possible on front-end for CSE script
return $this;
}
public function authorize(\Magento\Payment\Model\InfoInterface $payment, $amount)
{
if (!$this->canAuthorize()) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment