Difference between revisions of "Shopping Cart Sales"
From TMM Wiki
Jump to navigationJump to searchm |
(No difference)
|
Revision as of 11:28, 18 December 2008
To record a shopping card sale in NATS, add the following line to nats/includes/config.php:
- $config['SECURE_IPS'] = Array('123.123.123.123');
Replace the IP address inside the single quotes with the IP address of your shopping cart.
Now have your shopping cart post the following parameters to the /signup/process_shop.php script on your NATS domain.
- nats - The linkcode code of this sale
- ip - The ip of the surfer doing the sale
- amount - The amount of the sale in USD cents.
Extra Parameters
You can send the following extra parameters:
- transid - The ID of the transaction from inside the shopping cart.
- username - you can send the shopper's username along and NATS will
- If you send a username, you must send transid
- password
- firstname
- lastname
- address1
- address2
- zip
- city
- state
- country - ISO 2 letter code
- shipping_firstname
- shipping_lastname
- shipping_address1
- shipping_adderss2
- shipping_zip
- shipping_city
- shipping_state
- shipping_country - ISO 2 letter code
- custom1
- custom2