HP (Hewlett-Packard) MSM7XX Switch User Manual


 
Working with public access attributes
Public access interface ASP functions and variables
ASP variables
access_free: Set to 1 if the Free Access option is enabled.
access_purchase: Set to 1 if the Allow creation of user accounts option is enabled.
Example
LoadAccessInformation();
if (access_free) {
<p>Welcome to your free trial of the new high-speed wireless network service.</p>
}
LoadPaymentInformation()
This function initializes a set of variables that provide information on the current payment
services configured on the Service Controller >> Public access > Payment services
page.
ASP variables
payment_currency: Contains the 3-letter code identifying the currency that will be used
for all transactions.
payment_cc_gateway: Returns a string that identifies the payment service that is
configured. Either authorize.net or worldpay.
Example
LoadPaymentInformation();
if (payment_currency == "USD") {
write(subscription_plan_fee + " $");
}
LoadWorldPayInformation()
This function initializes a set of variables that contain WorldPay-specific information.
ASP variables
worldpay_url: String containing the configured WorldPay URL on the service controller.
worldpay_installation_id: String containing the configured WorldPay Installation ID on
the service controller.
worldpay_cart_id: String containing a unique number for this order that represents a
virtual cart in which items that are being bought are stored.
Example
LoadWorldPayInformation();
write(worldpay_url);
LoadTaxInformation()
This function initializes a variable that provide information on the current tax setting
configured on the Service Controller >> Public access > Payment services page.
9-88