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
forVisaEnvironmentProduction
than you use forVisaEnvironmentSandbox
. 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
forVisaEnvironmentSandbox
than you use forVisaEnvironmentProduction
. 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