There are several different ways you can set up your website using the four different parameter sets available in 2Checkout’s purchase system. The system works through sending HTML parameters (aka. variables) to the purchase routine to initiate a sale, whether they be sent by a HTML submission form or a direct purchase link.
Universal Parameters
Four universal parameters will be available to use with every set. These parameters assist you with various aspects of integrating the 2Checkout purchase system into your website:
- demo — You can set this equal to ‘Y’ to tell the purchase routine that the sale is a test. While the cart will act the same, and even ask you for billing details, no monetary transaction will actually take place.
- lang — Set this to ’sp’ to translate the purchase routine into Spanish.
- pay_method — This can be set to one of the following values to specifically set the purchase routine to use the specified payment method: ‘CC’ for Credit Card, ‘CK’ for check, ‘PPI’ for PayPal, ‘PPL’ for PayPal Pay Later, or ‘FXS’ for FXSource.
- merchant_order_id — You can set this to any ID number (eg. ‘merchant_order_id=SALE-001′), which will display on the customer’s email receipt of their purchase and can assist you with organizing customers and their purchases within your records.
The following are explanations of the four individual parameter sets available within our system.