Error logging and server-side errors (HTTP 500)
The module logs any problems during checkout in Magento’s System Log file. To use this feature, enable logging from System > Configuration > Developer > Log Settings.
After you enable error logging, run the following command from your Magento directory (if you have shell access):
tail -f var/log/*
This displays any errors in your terminal. You can try to reproduce and identify the occurring errors.
If you don’t have shell access, download the log file, open it with a text editor and search for the word Stripe.
Enabling error logging also writes to log files in the directory
var/report/. Make sure that these directories have write permissions enabled in your Magento installation. To check the last 100 lines of the
exception.log file, you can run the following command:
tail -100 var/log/exception.log
If you’re testing on a development website, you can also configure Magento to display exceptions directly on your website frontend (don’t do this in production). Run the following command:
cp errors/local.xml.sample errors/local.xml
Unable to use Stripe.js
This error indicates that Stripe.js isn’t working correctly on your checkout page. There are usually two common causes for this error:
- One Step Checkout modules: The Stripe Magento 1 module works with many OSC modules with no additional configuration required. Some OSC modules do require some extra steps to integrate.
Order stuck with the Pending status
Orders may get stuck with a
Pending status—even if the payment occurred—for a number of reasons:
- You may not have configured webhooks yet. Redirect-based payment methods such as Bancontact or Alipay require webhooks.
- You may have configured webhooks in Stripe for Test Mode, but your actual transactions were in Live Mode. In this case, you must also configure webhooks for Live Mode.
- The URL used to configure webhooks may return a
301 Redirectstatus rather than
200 OKstatus. This can occur when providing the
http://protocol rather than
https://in your URL, or when
www.is missing from the domain name.
- The endpoint can return a
500status when webhook events occur, indicating an error. Errors are available in
- If you set Payment Action to Authorize Only, no invoice results from placing an order. You must manually issue an invoice, which updates the order status to
- If you enable Automatic Invoicing, placing an order issues an invoice with a
Pendingstatus. The order is also
Pending Paymentand you manually capture the invoice, transitioning the order to
- If the payment method is asynchronous, it can take up to several days to confirm whether the payment is successful. During this time, the order in Magento remains in