Retrieving Your API Key
API keys for the Netevia Tap to Pay SDK are provided by Netevia to approved partners upon request.
Partners should request API access through their Netevia contact or implementation support channel. Netevia will review the request and provide the appropriate credentials for the approved environment.
API keys are environment-specific. UAT credentials are used for testing and validation. Production credentials are provided only after launch readiness is confirmed.
For security reasons, API keys should be stored securely and should not be shared in email threads, public repositories, screenshots, tickets, or unsecured chat messages.
If an API key needs to be rotated, revoked, or replaced, partners should contact Netevia support.
Using Your API Key in the SDK
Pass your API key to the SDK when you initialize it, along with a NeteviaOptions value that selects the environment and logging level:
import NeteviaSDK
let options = NeteviaOptions(
environment: .uat, // .uat | .production | .custom(String)
loggingLevel: .debug // .none | .error | .warning | .debug | .verbose
)
NeteviaMerchantSDK.shared.initialize(options: options, apiKey: "your-netevia-api-key")
environmentaccepts.uat,.production, or.custom(String)for a custom base URL.loggingLevelaccepts.none,.error,.warning,.debug, or.verbose. Use a lower level (such as.erroror.none) for production builds.
Call initialize(options:apiKey:) once, early in your app lifecycle (for example in AppDelegate), before using any payment functionality.