Configurations
The following settings are relevant for configuring a WEBSALE checkout process:checkout - Checkout process
Central configuration of the checkout process, for example for guest ordering, default selections, free checkout fields, shipping methods, and error display. The following are particularly relevant:checkout.checkout- General checkout settings, guest ordering, free fields, default values. Among other things, it contains:fieldErrorVisibility- Error display and error logic in the checkoutdefaults- Default selections, for example country, shipping method, payment method
checkout.shippingMethod- Shipping methods in the checkout processcheckout.clearingErrors- General error text when an online payment fails
customer - Customer data
Configuration of the customer data fields, for example for field definitions, mandatory fields, labels, field types, and validations. The following are particularly relevant:customer.customerDataField- Definition of individual customer data fields to be queriedcustomer.customerDataFieldSettings- Settings and validations of the customer data fieldscustomer.customerDataGroup- Grouping of customer data fields
accounts - User accounts
Relevant for logged-in customers, saved addresses, and saved bank or payment data. The following are particularly relevant:accounts.addressFieldsSettings- Settings for address fieldsaccounts.addressField- Definition of individual address fieldsaccounts.customAddressField- Additional custom address fields
accounts.bankInfoField- Bank data fieldsaccounts.creditCardField- Credit card fields
payment - Payment methods
Configuration of the offered payment methods and connected payment providers. The following is particularly relevant:payment.payment- Available payment methods
payment.payPalCheckout- Configuration for PayPal Checkoutpayment.payPalCheckoutErrors- Error texts for declined PayPal paymentspayment.stripe- Configuration for Stripepayment.stripeErrors- Error texts for declined Stripe payments
Modules
The following modules are particularly relevant for integration into the templates:- $wsCheckout - Checkout state, addresses, shipping, payment, problems, totals
- $wsActions - Generating and evaluating actions
- $wsAccount - Login status, email, addresses, loadAddress()
- $wsViews - Current URL, destination pages, view URLs
- $wsBasket - Basket and order overview
- $wsConfig - Configuration values, for example salutations and currency
- $wsPayPalCheckout - PayPal Checkout
- $wsStripe - Stripe
Actions
For a checkout, depending on the desired scope, the actions documented under Checkout are particularly relevant. For all actions for the checkout process, see CheckoutCanceled and failed online payments
With an online payment, the buyer briefly leaves the shop to confirm the payment with the payment service. If the buyer cancels the payment or it is declined by the payment service, the buyer returns to the checkout. The order is then not yet completed, and the buyer can choose a different payment method or try again. The template displays the reason for the decline via$wsCheckout.problems.clearing. The texts for this come from these nodes:
payment.payPalCheckoutErrors- Reasons reported by PayPal, as well as reasons from the shop’s own checkspayment.stripeErrors- Reasons reported by Stripecheckout.clearingErrors- General text for all other cases
cancelTemplate and errorTemplate under payment.payPalCheckout. Without a custom value, both point to checkout.htm.
Payments without feedback
If the buyer does not return to the shop and the payment service does not report a result either, the payment remains open. The shop checks such payments regularly. If there is still no result after two hours, it ends the payment due to a timeout and releases the order. If the payment service subsequently reports the payment as successful after all, the shop still completes the order. Orders from test mode and orders marked as fake are excluded from this check.Additionally relevant for a one-page checkout
If all checkout areas are merged onto a single page, the following points in particular are relevant:- MultiActions - Trigger multiple actions with a single click
- $wsCheckout.draftBillAddressId - “Temporarily storing” the billing address without actually saving it
- $wsCheckout.draftShippingAddressId - “Temporarily storing” the shipping address without actually saving it
- checkout.fieldErrorVisibility - Error display and error logic in the checkout
- checkout.checkout.defaults - Default selections, for example country, shipping method, or payment method
