What's New
Tagged: carrier, country, easycheckout
- AuthorPosts
If you find your site can’t be opened, then rename the spinwheel module, it has an error.
The 3D issue fixed by changing this codereturn preg_match('/^[-]?[0-9]{1,10}(\.[0-9]{1,9})?$/', $price);
toreturn preg_match('/^[-]?[0-9]{1,10}(\.[0-9]{1,20})?$/', $price);
in the /classes/Validate.php file, so the issue was not the issue related to the Easycheckout.
You do some tests.Forget about the error in the Spinwheel, it’s gone.
The “amount” field provided by the Stripe module is a float number like this 64.1000000000 it has 10 digits after the decimal point.
The vanilla in the Validate.php is
return preg_match('/^[-]?[0-9]{1,10}(\.[0-9]{1,9})?$/', $price);
It only accepts 9 digits after the decimal point. I changed the very last 9 to 20 to accpet 20 digits.I don’t which module cases the issue.
3. Upload a 4ff3aa8c649d234f2ec9fec0edc60cefsofort.png
and
a 4ff3aa8c649d234f2ec9fec0edc60cefeps.png
to the /upload/steasycheckout/ folder.I added this code right below this line $this->payment_options[$pk][$ok][‘logo’] = $logo; in the \modules\steasycheckout\classes\StCheckoutPaymentStep.php file.
if($module_name=='stripe_official'){ if(Tools::strpos($option['form'], 'sofort')) $this->payment_options[$pk][$ok]['logo'] = str_replace('.png', 'sofort.png', $this->payment_options[$pk][$ok]['logo']); if(Tools::strpos($option['form'], 'eps')) $this->payment_options[$pk][$ok]['logo'] = str_replace('.png', 'eps.png', $this->payment_options[$pk][$ok]['logo']); }
The stipe office module’s payment methods all use the same name “stripe_official”, so have to add that code to use a different logo for different payment methods.
4. Use this code.
.stripe-payment-form .stripe-card-secure-code{vertical-align: bottom;margin-bottom: 16px;}
5. This requires some amount of custom work, hire some to do it for you.
6. No built-in solution for this case. How about this
1) Set a special carrier for the bottle.
2) Assing the “Bank transfer” module for the special carrier.
3) Change the name of the bank transfer module to “No need to pay”. Or even hide the payment section when the special carrier is selected, some amount of work is needed.Will you please have a solution for me? It is quite urgent now… And remember, it is possible to chat live with Stripe developers in #stripe on freenode: https://webchat.freenode.net/ they can help with the integration.
It’s difficult for me to figure it out.
I don’t know how the apply pay works, I have an iPad and an iPhone 7, don’t have an apply pay account, can I do tests?
Take these steps to test again.
1. Don’t use die($message);
Use this code instead.
`@file_put_contents(_PS_ROOT_DIR_ . ‘/applepay.log’, $message);’2. Pay via apple pay again.
3. Check if an applepay.log file gets created in the root folder of your site? If yes, send me the message in it.
- AuthorPosts
You must be logged in to reply to this topic.