VisaEnvironment

enum VisaEnvironment {}

Environment is the context in which Visa Checkout SDK will connect. For testing and debugging purposes, VisaEnvironmentSandbox should be used. When deploying to the general public, VisaEnvironmentProduction must be used.

Each environment will have a different apiKey associated with it. It is important to remember to change the API Key to the production API Key value before submitting apps to the App Store.

  • Production is used for deploying your app to the general public for use. This environment will use live Visa Checkout accounts.

    You must remember to use a separate apiKey for VisaEnvironmentProduction than you use for VisaEnvironmentSandbox. It is important to remember to change the API Key to the correct one before publishing your app to the general public.

    Declaration

    Objective-C

    VisaEnvironmentProduction

    Swift

    case production = 0
  • Sandbox is used for debugging and integration testing. Anyone can create Visa Checkout accounts and submit test payments without any effect on real world credit card transactions. There is minimal validation on credit card details and addresses, but otherwise is a simulated production environment.

    You must remember to use a separate apiKey for VisaEnvironmentSandbox than you use for VisaEnvironmentProduction. It is important to remember to change the API Key to the correct one before publishing your app to the general public.

    Declaration

    Objective-C

    VisaEnvironmentSandbox

    Swift

    case sandbox = 1