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 theEJD- 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.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.
EASYCREDIT-GetCheapestModelCalculation() instead.
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.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.The consent text
Before the order, the buyer must agree to the easyCredit terms. easyCredit supplies the text for this.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.
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.
Tags with other prefixes
Three tags belong to the payment method but carry a different prefix. All three are permitted on the order overview pagews_place_order.htm.
Without the cancel button, a buyer who has changed their mind is stuck. Therefore, always provide it.
Overview of the tags
Related topics
- Guide: Payment method “easyCredit installment purchase”
- Guide: JSON interface
- Guide: Creating payment methods
- Reference: EJD- (external JSON data)
