Download the PHP package shopgate/webcheckout-magento2 without Composer
On this page you can find all versions of the php package shopgate/webcheckout-magento2. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download shopgate/webcheckout-magento2
More information about shopgate/webcheckout-magento2
Files in shopgate/webcheckout-magento2
Package webcheckout-magento2
Short Description Helps SG connect/engage extensions with web checkout, auto-login, allows to add CSS for register/checkout pages
License proprietary
Informations about the package webcheckout-magento2
Shopgate WebCheckout
Install via composer
Configurations:
We suggest updating the Services > Mage Web API > JWT Auth > Customer JWT Expires in
to a longer timeframe,
otherwise the customer will be logged out every 60 minutes by default. This is not very user friendly.
Endpoints
Product ID to SKU mapping
Result:
Product SKU to ID mapping
Result:
Auto-login token
Result
Result
Custom WebCheckout log
Note that you will need to enable the logging in the Shopgate > WebCheckout
configuration for it to stop throwing 500 errors.
Result:
Shopgate WebCheckout orders
Result:
Developer mode
When working with the frontend and trying to mimic the inApp, just append ?sgWebView=1
and load the page. This will
allow you to work with CSS and see our JavaScript logic as if you loaded the page as inApp browser. Clear the cookie
by setting ?sgWebView=0
.
Our logic, (at the time of writing only sgwebcheckout/account/login
controller) has logging for easier debugging,
however, you will need to enable it in the Admin > Config > Shopgate WebCheckout
area or with command line:
Afterward, you can see the log in the var/log/shopgate/webcheckout_debug.log
directory or use our API to query the
logs. See postman for an example of how to use it.
Errors
Token has an invalid structure.
- this error can occur if there is a 302 redirect happening. Let's say you have a website test.com, but yourdefault
storeCode references test.com/en, callingtest.com/sgwebcheckout/login?token=...
will trigger a 302 redirect totest.com/en/sgwebcheckout/login
without forwarding the token or any other parameter. Token will be empty & you get this error message. Fix - make sure to usetest.com/en
as your domain.The current user cannot perform operations on cart \"{MASKED_ID}\"
- this is an error that can happen if you are trying to addProducts to cart as guest, but a customer session cookie is set, it is calledPHPSESSID
. Fix - make sure the Cookie is not set before making API/GraphQL calls.
All versions of webcheckout-magento2 with dependencies
magento/framework Version 103.0.*
magento/module-customer Version 103.0.*
rbdwllr/reallysimplejwt Version ^5.0.0