Snappy Checkout
I'm Mike Singer, the founder & developer of Snappy Checkout. I'm here to help if you have any questions that are not covered below. Feel free to email me anytime.
Webhooks
Event Notification
You can use webhooks to be notified when you receive a new payment. These webhooks can be setup in the Account --> Webhooks section of the Snappy Checkout admin. After entering a webhook URL, you'll be notified via an HTTP POST request whenever the event occurs.

The Events --> Webhooks section of the Snappy Checkout admin lists all of the webhooks that have been delivered to you. You'll also be able to see the information that was passed in the webhooks and the responses from the URL that received the webhooks.

If you have the need for a new webhook, then please email support@snappycheckout.com with the details.



Testing Webhooks
After enter the webhook URL in the Account --> Webhooks section of the Snappy Checkout admin, click the “Test” button to send an HTTP POST request with sample data to the specified URL.

Follow these steps to see what kind of data a webhook sends:

  1. Go to http://requestb.in.
  2. Click the green “Create a RequestBin” button (keep this webpage open).
  3. Copy the generated URL from the “Bin URL” text box into the Snappy Checkout “Payment Received URL” box.
  4. Click the “Test” button to the right of the "Payment Received URL" text box.
  5. Refresh the RequestBin webpage and you'll see the data Snappy Checkout sent via the HTTP POST request.

The following values may appear in the received data:

  • ProductId --> What you entered in the “Product ID” text box when creating your product in the Products section of the Snappy Checkout admin.
  • Passthrough --> A unique value specified by you (like the customer's unique id from your database) and passed by your checkout to the Snappy Checkout back-end. You can use this value to verify which customer made the payment.

Here's an example of how the passthrough value would be set in your checkout:

<script src="https://s3.amazonaws.com/snappycheckout/Button.js" class="checkout-button" id="TEST3FG5WQ212VBTEST" label="Buy Now" passthrough="12345"></script>

Or, auto launch your checkout by adding the following JavaScript to the bottom of your webpage (right above the closing </BODY> tag). This will cause your checkout to pop up as soon as the webpage loads.

<script src="https://s3.amazonaws.com/snappycheckout/Button.js"></script> <script>Checkout.loadButton("TEST3FG5WQ212VBTEST", "12345");</script>

Note: You'll have to replace the above id values with the values for your product in order for this example code to actually work. Click the link icon to the right of your product in the “Products” section of the Snappy Checkout admin to locate your product id.
© Snappy Checkout
support@snappycheckout.com