Price and Payment Related Object Types
Amounts
Amounts contain product prices.
<object_guid>
Defines the products associated with this amount.
<object_type>
Defines the type of object the amount represents.
<list_price>192.00</list_price>
The list price for the product.
<price_list_guid>
Defines the price list assignment associated with this amount
Sample XML:
<amounts>
<base_amount>
<guid>47B01916-7E58-631C-5C72-E1603B5BD419</guid>
<object_guid>CANON_CAMERA_WITH_COLOR_CASE_AND_BACKPACK</object_guid>
<object_type>PRODUCT</object_type>
<quantity>1.00</quantity>
<list_price>300.99</list_price>
<sale_price>289.99</sale_price>
<price_list_guid>SNAPITUP_USD</price_list_guid>
</base_amount>
...
</amounts>
Price Lists
A price list contains a set of pricing information that can be related to different products. The conditions under which price lists are applied to products are stored in the Price List Assignment. The actual price of the product is stored in Amounts.
Sample XML:
<price_lists>
<price_list>
<guid>SeniorPL</guid>
<description>Price List with cheaper prices for selective Telescope products</description>
<currency_code>USD</currency_code>
<name>Senior Price List</name>
<hidden>false</hidden>
</price_list>
...
</price_list>
Price List Assignment
A price list assignment links Price Lists to products for specific catalogs. Price list assignments also contain the pricing conditions that can provide customer prices for targeted shoppers.
Sample XML:
<price_list_assignments>
<price_list_assignment>
<guid>4C640BA5-A95A-B02D-503C-23239EBB381D</guid>
<name>Senior Shopper</name>
<description>Shoppers who are seniors will receive cheaper pricing on selected Telescope products.</description>
<priority>8</priority>
<catalog_guid>SNAPITUPUS</catalog_guid>
<price_list_guid>SeniorPL</price_list_guid>
<selling_context>
<guid>2054C56D-250F-E515-CA69-AC097DA371D5</guid>
<name>Senior Shopper</name>
<description>PLA SellingContext for Senior Shopper</description>
<priority>1</priority>
<conditions>
<condition>
<guid>25E48ED8-7541-D072-EFF9-B4AF76C45511</guid>
<name>name_TIME</name>
<description>desc_TIME</description>
<condition_string>{AND {SHOPPING_START_TIME.greaterThan (1230796800000L)} {SHOPPING_START_TIME.lessThan (1669967999000L)}}</condition_string>
<dictionary_guid>TIME</dictionary_guid>
</condition>
<condition>
<guid>394CEAE8-F46A-2633-4208-9F38600176FD</guid>
<name>name_PLA_SHOPPER</name>
<description>desc_PLA_SHOPPER</description>
<condition_string>{ AND { AND { CUSTOMER_AGE_YEARS.greaterThanOrEqualTo (65i) } } }</condition_string>
<dictionary_guid>PLA_SHOPPER</dictionary_guid>
</condition>
</conditions>
</selling_context>
</price_list_assignment>
...
</price_list_assignments>
Payment Gateway
A payment gateway is a service provider for storefront payments. Elastic Path has a number of integrated payment gateways. The <properties>
in the Payment_Gatways.xml
depend on the type of payment gateway selected for your storefront.
Sample XML:
<payment_gateways>
<payment_gateway>
<name>PayflowPro</name>
<type>paymentGatewayPayflowPro</type>
<properties>
<property key="logFileName">log/payflow-pro.log</property>
<property key="loggingLevel">1</property>
<property key="vendor">YOUR_VENDOR</property>
<property key="hostAddress">pilot-payflowpro.paypal.com</property>
<property key="proxyAddress"></property>
<property key="proxyLogon"></property>
<property key="proxyPort"></property>
<property key="hostPort">443</property>
<property key="password">YOUR_PASSWORD</property>
<property key="logFileMaxSize">5</property>
<property key="partner">Verisign</property>
<property key="user">YOUR_USERNAME</property>
<property key="proxyPassword"></property>
</properties>
</payment_gateway>
...
</payment_gateways>