Ledyer checkout plugin for WooCommerce
Change PHP version in .env or set env variable PHP_VERSION
npm run install
docker-compose up --build
This is usually due to missing setup in woocommerce and or invalid api-credentials.
You can add a breakpoint in lco-functions.php
-> lco_create_or_update_order
and check the data in the $response. Ledyer will tell you what data is invalid or if the request was unauthorized.
If you are missing data i woocommerce, make sure you have set the following:
- If you are logged in, your use must be set to country = sweden. User -> Edit profile -> Country/Region -> Sweden
- Make sure that the Woocommerce shop is configured to target Sweden. Woocommerce -> Settings -> General -> Country/Region -> Sweden
- Make sure that the Woocommerce shop is configured to use Swedish krona. Woocommerce -> Settings -> General -> Currency -> Swedish krona (kr)
- Make sure to enter a terms url in Ledyer checkout plugin settings.