🌫️

Testing

Step 1: Ensuring Stationery Editor is on Test Mode

In the widget script that you generated as part of the

phase, there is a 'mode' attribute. This is either set to 'Production' or 'Testing'. For the purposes of making sure it works, please set it to 'Testing'.

Step 2: Enabling Bogus Payments

Next, we want to be able to put a fake order through without paying. We do this by adding a fake payment gateway.

  1. Go to Settings
  2. Click the Payments link
  3. Go to 'Third Party Providers'
  4. Search '(for testing) Bogus Gateway' and enable it

Now, when you go to pay for the product you buy and gift note, you won't be charged if you use the below details.

Card Number: 1

Name on Card: Bogus Gateway

Expiration date: Any future date in MM/YY format

Security Code: Any three-digit number

Step 3: Running Through as a Customer

Now it's time to take a look at what the customer will see.

  1. Go to your preview store
  2. Add a product to your basket
  3. Click the 'Add a Gift Note' box
  4. image
  5. Observe that the stationery editor has now appeared
  6. image
  7. Customise your note's text and whatever else you've allowed and click 'Generate Note'
  8. Observe that the page refreshes and the gift note product is added to the basket
  9. image
  10. Go to checkout and complete the order with the payment details above and any address

Step 4: Running Through as Store Production

The note won't be generated until you have fulfilled the order. This is to ensure that the customer will actually get their item and the order hasn't failed for any reason. To do this, fulfil the order items as normal.

Step 5: Checking Results

Now, it's time to check that the note has gone through properly

  1. Go to the Scribeless platform
  2. Click on 'Campaigns' in the lefthand navbar
  3. Verify that there is a new campaign with the text and customisations that you entered
  4. Verify that there is a recipient in the campaign with the address you entered in earlier. This will be highlighted yellow and marked as 'Shipped' as we're in testing mode. When in production mode, it will be in the appropriate status dependent on whether the campaign is Full Service or On Demand

Step 6: Getting Ready for Production

If any of the above didn't work, you'll have to get your debugging gloves on to find the issue. Do go back through the guide to help.

If everything worked, congratulations, you're all set up!

Remember now to change the widget mode to 'Production' and to disable the Bogus Gateway by going back over what you did in Step 1.