Global Variables

The javascript checkout API makes use of some global variables. These variables are described below.

Variable

Description

String secureHostName

The secure host name that the API should talk back to. This defaults to secure.ultracart.com. This should be changed only via the initialize call.

String merchantId

The merchant ID of the UltraCart account that this cart is for. This should be set via the initialize call.

String callbackUrl

The URL that the checkout api will make server callbacks to.

Cart cart

The customer's cart. This will default to null. This variable is automatically set when you call getCartInstance. All methods that modify this object will automatically update it when the method completes. There is never a need to set this variable manually.