|Index||-||FAQ - Add to Cart code|
Occasionally you may need extra processing done on your website when a product is purchased. To accommodate you the cart has the ability to send data back to the URL you specify in the "ItemSilentPost" field. The cart will do a silent post to the URL using the POST method once the product has been purchased.
If you choose, you can setup verification of the silent post, simply enter the ItemSilentPost Verification Text into step #8 Advanced Settings. The cart will verify that this text exists in the data that your URL returns. If it does not, we will send you email notification that it failed to verify.
Note: ItemSilentPost can only to connect to destination port 80 or port 443. Please make sure your developers use these ports for communication. All connections will come from 22.214.171.124, please adjust your firewalls accordingly.
Please note that this is done for each individual product purchased, so it may cause extra delay in the display of the customer's final receipt if they purchase many different items.
Note: You must enter a fully qualified URL for this to properly connect (eg http://www.your_site.com/thescript.php)
PHP Example for maximum security
This first script would be run from command line to generate the URL string that you place into the shopping cart itemsilentpost field.
This second script would be installed on your server as a web page at the $url shown in the first script.