Difference between revisions of "Shopping Cart Sales"

From TMM Wiki
Jump to navigationJump to search
m
 
Line 24: Line 24:
 
** If you send a username, you must send transid
 
** If you send a username, you must send transid
 
* password
 
* password
 +
* email
 
* firstname
 
* firstname
 
* lastname
 
* lastname

Revision as of 19:20, 30 June 2010

NATS 3
NATS Extras
Remote Affiliate Authentication
Shopping Cart Sales
Moving Tours, Members' Area, and Galleries
Require W-9
Admin Areas
Fraud Report
NATS Content of the Day Module
NATS Load Balancing Module
Gallery Builder Module
Build Your Own Anything Module
NATS Code Wordpress Plugin
Error_message_display
TMMid

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
  • email
  • 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