Skip to main content
With an installment purchase via easyCredit, it is not the shop that decides on the financing, but easyCredit. Everything the buyer gets to see is therefore retrieved by the shop from easyCredit at runtime: the installment example on the product page, the repayment plan in the ordering process, the consent text before the order. The tags with the prefix EASYCREDIT- are the interface for this. Guide: Payment method “easyCredit installment purchase”

The pattern in three steps

The tags come in pairs. One tag retrieves the data from easyCredit, a second contains the response as JSON. The response is not output by WEBSALE, but via the JSON interface with the EJD- tags.
WEBSALE passes the response from easyCredit through unchanged. Which fields it contains is determined by easyCredit, not by the shop. You therefore always build the output yourself with the EJD- tags.
Every retrieval is a call to easyCredit and takes time. The shop therefore only retrieves the data the first time: if the response is already available, a second EASYCREDIT-Get… on the same page does nothing. Conversely, this also means that the response cannot be updated within a single page request.
Guide: JSON interface

Overview of the five retrievals

The two upper retrievals serve advertising before the purchase and are only permitted on the start page, product overview, and product detail view. The three lower ones belong in the ordering process and are permitted there on the payment and shipping pages, the order overview, the confirmation pages, and the confirmation email.

Installment examples before the purchase

On the product page, an installment example shows what the item costs per month. EASYCREDIT-GetModelCalculation() retrieves it; the amount goes in the parentheses.
For the lowest installment for the basket value, use EASYCREDIT-GetCheapestModelCalculation() instead.
The amount is required for both tags. Without content in the parentheses, the tag is invalid and nothing is retrieved.
The shop itself converts a comma in the amount into a period, because easyCredit requires this format. You can therefore pass a formatted price such as $PR-Price$ directly.

Transaction data in the ordering process

As soon as the buyer has selected easyCredit, there is a transaction at easyCredit for their order. Three retrievals fetch its data.
Always enclose the retrievals with ST-EasyCreditCheckout_selected. Without this condition, the shop also queries easyCredit if the buyer has selected a different payment method.
The shop additionally stores the response to EASYCREDIT-GetRepaymentPlanDetails with the order. This data is therefore still available later, for example on the PDF confirmation and in the confirmation email.
Before the order, the buyer must agree to the easyCredit terms. easyCredit supplies the text for this.
The consent text is legally binding. Output it unchanged and do not shorten it.

Displaying access data

Two tags output the shop’s connection data for easyCredit.
Both tags are needed for integrating the easyCredit widget, which loads its data itself. They are not intended for display in the shop.

Evaluating errors

If a request to easyCredit fails, easyCredit returns an error message as JSON. EASYCREDIT-LastErrorJSON contains the response to the most recent request.
As a range tag, EASYCREDIT-LastErrorJSON already answers the question of whether there is an error at all. The bracketing therefore replaces a separate check.

Looking up a specific transaction

The shop stores the errors separately per request type. EASYCREDIT-TouchErrorJSON() selects one of them, and EASYCREDIT-LastErrorJSONAccessed then outputs it.
Permitted values for the request type:
These two tags are not described in the previous documentation, but they exist in the shop. They help with troubleshooting because they let you identify which of the eight calls failed, not just the last one.
An unknown value in the parentheses does not lead to a message. EASYCREDIT-LastErrorJSONAccessed then simply stays empty. Therefore, pay attention to the spelling.

Tags with other prefixes

Three tags belong to the payment method but carry a different prefix. All three are permitted on the order overview page ws_place_order.htm.
Without the cancel button, a buyer who has changed their mind is stuck. Therefore, always provide it.

Overview of the tags

  • Guide: Payment method “easyCredit installment purchase”
  • Guide: JSON interface
  • Guide: Creating payment methods
  • Reference: EJD- (external JSON data)