Difference between revisions of "NATS4 Shopping Cart Sales"
From TMM Wiki
Jump to navigationJump to searchTmmStephen (talk | contribs) |
|||
Line 51: | Line 51: | ||
* shipping_lastname | * shipping_lastname | ||
* shipping_address1 | * shipping_address1 | ||
− | * | + | * shipping_address2 |
* shipping_zip | * shipping_zip | ||
* shipping_city | * shipping_city |
Revision as of 21:54, 15 March 2010
Billers Admin
Go to Billers Admin and select "Shopping Cart" from the Biller drop-down. Enter a shortname in the Shop ID field.
Sites Admin (Optional)
Go to Sites Admin, add a new shopping type site or edit the tour of an existing shopping site, and enter your Shop ID in the SHOP Site field. This associates sales though this site and tour with that shopping cart.
Configuration
Add the following line to nats/includes/config.php:
$config['SHOP_ALLOWED_IPS'] = Array('123.123.123.123');
Replace the IP address inside the single quotes with the IP address of your shopping cart.
Shopping Cart Post Parameters
Make your shopping cart post the following required parameters to the /signup/process_shop.php script on your NATS domain.
- nats - The NATS code of this sale
- amount - The amount of the sale in USD cents.
- transid - The ID of the transaction from inside the shopping cart.
- shop_id -- the Shop ID of a shopping cart you setup in the Billers Admin
Extra Parameters
You can send the following extra parameters:
- site_id -- register the sale under this site (used when a natscode isn't present)
- action -- "SALE" to register a new sale. Either "chargeback" or "credit" registers a chargeback or credit for that transaction ID number (transid)
- username - you can send the shopper's username along and NATS will record the sale under their account
- ip - The IP address of the surfer doing the sale
- password
- firstname
- lastname
- address1
- address2
- zip
- city
- state
- country - an ISO two letter code
- shipping_firstname
- shipping_lastname
- shipping_address1
- shipping_address2
- shipping_zip
- shipping_city
- shipping_state
- shipping_country - an ISO two letter code
- custom1
- custom2