If you currently use SamCart shopping cart, modify a few settings on SamCart. Once you do this, you will not have to manually input customer orders into the TrepStar.com product order form.

Overview:

  1. To use this integration, SamCart requires you have their highest cost "Scale" plan which costs $199/month (at the time of this writing).
  2. Follow the instructions below to set up the SamCart order integration.


First, Copy Your TrepStar Publisher ID.

  1. Login to TrepStar and look for this in your account area.
  2. You will need the TrepStar publisher ID to configure the notify url integration (webhook).



Create a New SamCart Integration

  1. Click the gear icon on the top row near 'Account'
  2. Choose 'Integrations' on left column. You need the SamCart "Scale" subscription to use integrations.
  3. Click the 'New Integration' button.


Choose NotifyURL



Configure the Integration

  1. The notify url will include your TrepStar publisher ID. Login to TrepStar to find your ID.
  2. Name the Integration 'TrepStar Fulfillment' (you can change this later).

  3. The SamCart notify URL is:

    Replace TrepStarPubID with your actual TrepStar publisher ID you copied from your TrepStar account. e.g. idpub=123456 (where 123456 is replaced by your actual TrepStar publisher ID).
  4. Click 'Save Integration'.



Create a Trigger for the Integration

  1. Click the 'Gobal Rules' tab Within the 'Integrations' Section.
  2. Create the new rule.
  3. Choose the Product Purchased Trigger.
  4. Click the 'Next Step' button.



Finish the Trigger

  1. Choose the 'TrepStar Fulfillment' Integration from the list (you created the integration and named it on the previous step).
  2. Choose the 'Send Notify Url POST' Action
  3. Click the 'Next Step' button.



SamCart Product Details

  1. Choose the SamCart Product associated with a TrepStar project.


SamCart Product Details

  1. Find the SamCart ProductID for each product associated with a TrepStar project.
  2. The SamCart ID is located on the browser URL.
  3. In this example, the SamCart ID is 279813.


Configure Corresponding TrepStar Product

Advanced Settings Section

  1. Find the corresponding TrepStar Project and click the Configure Project ID link from within TrepStar.
  2. On the left column, look for the Advanced Settings Button.
  3. In the TrepStar "eCommerceIDString" enter the SamCart ID.
  4. In our example, the SamCart ID is 279813. You will have a different ID.
  5. Save Changes.


Multiple SamCart Products to Single TrepStar Product

  1. If you have multiple SamCart products that are for the same TrepStar project, you may string together the product numbers using curly braces {}.
  2. e.g. {294010}{298020}
  3. This would mean any orders from SamCart with product 294010 or 298020 will trigger an order for this corresponding TrepStar product.



Summary

  1. You have created a Notify URL Integration on SamCart which specifies a url including your TrepStar publisher ID.
  2. The Integration triggers on the Product Purchased event.
  3. You have identified each SamCart product number and matched it to the corresponding TrepStar Project by setting the TrepStar Advanced Settings, eCommerceIDString.
  4. Now, when orders come into SamCart, you should see them right away on TrepStar (within 1 minute). Assuming you have a zero balance on TrepStar, those orders will be on 'hold'.
  5. You may modify or delete 'hold' orders which is a good way to test this integration.
  6. Make sure you have a zero balance on TrepStar when you're testing so we don't start making product right away, as there are no refunds!
  7. We will only create orders for products in your account. For example, we check the SamCart ID value sent to us on the notify url call to our server. If it matches products in your account where the eCommerceIDString matches that number, we create the order.
  8. An order is created on TrepStar when the type of notify is 'Order'. We ignore 'Cancel' or 'Refund' events.
  9. If you are testing the integration, you should see the order on TrepStar within 1 minute of completing the order on SamCart. If you do not, contact help@trepstar.com and we'll see if we received any order data.



SamCart Event Logs

  1. SamCart provides a log of all integration activity.
  2. Choose 'Integrations' and pick the 'Logs' tab.
  3. If you set it up correctly, you should see some activity for the NotifyUrlIntegration