Skip to content

ledyer/ledyer-checkout-for-woocommerce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ledyer-checkout-for-woocommerce

Ledyer checkout plugin for WooCommerce

Local dev environment

Change PHP version in .env or set env variable PHP_VERSION

npm run install
docker-compose up --build

Running into issues during development?

When I try to go to checkout, the url is resolved to lco-order=error

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.