eCommerce Integration
Section 5: Test the Integration
Follow these directions to run test instructions through our sandbox server. Our sandbox server is an exact mirror of our production server. To differentiate between the two, we have left our security certificate expired on the sandbox server. Please add exceptions in your browsers if prompted to navigate and view all content.
What you need before you test
You will have to create two sandbox accounts, one for a merchant and one for a member. Where prompted in the registration process please use this routing number 063000021. The link to these pages are below.
- eLayaway sandbox merchant account
- eLayaway sandbox member account
Note: You will be emailed for each account created and must activate these accounts individually by clicking the activation link in each email.
Setting up the test
IMPORTANT: Once you have integrated the code into your shopping cart you will have to change four variables to post the transaction data to the merchant sandbox account rather than your live merchant account.
Step 1.
Change the following javascript in the header from:
To:
Step 2.
Change your form action from:
To:
Step 3.
Change the following lines below (located within the HTML for the calcuator):
To this:
Notice that you now have added 'https://appdev.elayaway.com/purchase/capture' as an action which instructs the calculator to POST the transaction to our sandbox server.
Step 4.
Change the merchant ID (###) in your hidden form to your sandbox ID:
Important: Please make sure your sandbox merchant ID is correct.
How to run the test
- Click on the eLayaway button that you want to test.
- Set your payment schedule by clicking the (+) or (-) buttons and click "eLayaway now."
- Enter in the sandbox member username and password when prompted.
- Confirm the purchase on the order summary page.
- View test orders.
How to view test orders
You now have a new test order in two sandbox test accounts and will receive a confirmation email in each account. To view the order in either account simply log into them here.
Note: make sure you are at the correct sandbox login screen rather than the production app login screen. View the URL to confirm that you are logging into sandbox. The sandbox login has "appdev" rather than "app2" in the address.
Finishing Steps
Once you have confirmed that the test order is a success, make the following changes so that new orders are posted to our production server:
Step 1.
Change the javascript from:
Back to:
Step 2.
Change your form action from:
Back to:
Step 3.
Change the calculator code from:
Back to:
Step 4.
Replace your sandbox ID with your production ID. Place your live Merchant ID here (replace the ###):
You are now ready to accept eLayaway orders through your site!
Let's move on to How to Market eLayaway to your customers.