eCommerce Integration

Checkout Flow:

Section 1: Create a new form on your shopping cart’s page

Begin by adding a new form to your shopping cart page. This should be separate from any pre-existing forms used by your cart. The opening form tag should appear as follows:

Your form should contain multiple hidden input fields which contain your merchant information and data regarding the items in the current cart. The values of these fields should be generated by your shopping cart, although several fields are static and therefore can be hard coded. You should format your input fields as follows:

Detailed information on each of the input fields can be found in the following table:

Field Description Inclusion
merchant_id Your merchant ID can be found within your account settings on eLayaway.com. Place either your production merchant ID or sandbox merchant ID in this field. required
currency_code The international currency code for the type of currency used in the transaction. At this time eLayaway only accepts U.S. dollars, so set this value to “USD”. required
months Leave this value blank, it is handled by our calculator. The eLayaway payment calculator allows consumers to select their payment amount and frequency. Inclusion of the calculator is detailed below. (PASSED BY CALCULATOR)
payment_frequency Leave this value blank. Currently, only monthly payments can be set by the customer. (PASSED BY CALCULATOR)
return Customers will be re-directed back to this URL when they have confirmed the layaway. Click here to see return status data sent back. Replace http://www.yourretrunaddress.com with the return address of your choice. required
merchant_order_number Allows you to pass an order number from your system to eLayaway. This lets us use your system’s order number when sending you order status notifications. optional

Section 2: Select the Submission Method.

We support two methods for sending items from your shopping cart to eLayaway. Each method will have the same starting form data (outlined above) but depending on which method you choose, the remaining form data will differ.

An explanation of each submission method is detailed further on their respective page.

Choose a method:

  1. Items in a shopping cart can be sent individually.
    - or -
  2. Items in the shopping cart can be sent as one complete bundle.