You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.
Hi, I managed to install the inchoo stripe module , but when I go on the checkout page and insert the credit card info , when I try to pay I get please insert a valid credit card expiration date error. I have tryed with several credit cards , and allways get the same error.
The text was updated successfully, but these errors were encountered:
I have the same problem with the message: please insert a valid credit card expiration date
I can resolve this, changing the file app/code/Inchoo/Stripe/Model/Payment.php and adding the following code:
/**
* Assign data to info model instance
*
* @param \Magento\Framework\DataObject|mixed $data
* @return $this
* @throws \Magento\Framework\Exception\LocalizedException
*/
public function assignData(\Magento\Framework\DataObject $data)
{
if (!$data instanceof \Magento\Framework\DataObject) {
$data = new \Magento\Framework\DataObject($data);
}
$info = $this->getInfoInstance();
$info->setCcType(
$data->getDataByPath('additional_data/cc_type')
)->setCcOwner(
$data->getDataByPath('additional_data/cc_owner')
)->setCcLast4(
substr($data->getDataByPath('additional_data/cc_number'), -4)
)->setCcNumber(
$data->getDataByPath('additional_data/cc_number')
)->setCcCid(
$data->getDataByPath('additional_data/cc_cid')
)->setCcExpMonth(
$data->getDataByPath('additional_data/cc_exp_month')
)->setCcExpYear(
$data->getDataByPath('additional_data/cc_exp_year')
)->setCcSsIssue(
$data->getCcSsIssue()
)->setCcSsStartMonth(
$data->getCcSsStartMonth()
)->setCcSsStartYear(
$data->getCcSsStartYear()
);
return $this;
}
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi, I managed to install the inchoo stripe module , but when I go on the checkout page and insert the credit card info , when I try to pay I get
please insert a valid credit card expiration date
error. I have tryed with several credit cards , and allways get the same error.The text was updated successfully, but these errors were encountered: