{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-android/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["code-walkthrough","step"]},"type":"markdown"},"seo":{"title":"Credentials | Android Card Present SDK Reference","description":"Reference for MerchantData credentials used to initialize the Finix Android Card Present SDK.","siteUrl":"https://docs.finix.com/","llmstxt":{"hide":false,"sections":[{"title":"Getting Started","includeFiles":["guides/getting-started/**/*.md"],"excludeFiles":[]},{"title":"Online Payments","includeFiles":["guides/online-payments/**/*.md"],"excludeFiles":["guides/online-payments/payment-features/fsa-hsa-non-healthcare-mcc.md"]},{"title":"In-Person Payments","includeFiles":["guides/in-person-payments/**/*.md"],"excludeFiles":[]},{"title":"Subscriptions","includeFiles":["guides/subscriptions/**/*.md"],"excludeFiles":[]},{"title":"After the Payment","includeFiles":["guides/subscriptions/after-the-payment/**/*.md"],"excludeFiles":[]},{"title":"Managing Operations","includeFiles":["guides/managing-operations/**/*.md"],"excludeFiles":[]},{"title":"Platform Payments","includeFiles":["guides/platform-payments/**/*.md"],"excludeFiles":[]},{"title":"Payouts","includeFiles":["guides/payouts/**/*.md"],"excludeFiles":[]},{"title":"Developers","includeFiles":["additional-resources/developers/**/*.md"],"excludeFiles":[]},{"title":"Plugins","includeFiles":["additional-resources/plugins/**/*.md"],"excludeFiles":[]},{"title":"Industry Considerations","includeFiles":["guides/industry-considerations/**/*.md"],"excludeFiles":[]},{"title":"Regional Considerations","includeFiles":["guides/regional-considerations/**/*.md"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"CodeWalkthrough","attributes":{"__idx":1,"filters":{},"filesets":[{"files":[{"path":"android/card-present/_filesets/credentials.kt","content":[{"start":0,"condition":{"steps":["merchant-data-shape"]},"children":["class MerchantData(","    val merchantId: String,","    val mid: String,","    val deviceId: String,","    val currency: Currency = Currency.USD,","    val env: Environment = Environment.SB,","    val userId: String,","    val password: String",")"]},"",{"start":12,"condition":{"steps":["environment"]},"children":["// Sandbox","val mpos = MPOSFinix(context, MerchantData(","    merchantId = \"MUxxxxxx\",","    mid = \"\",","    deviceId = \"DVxxxxx\",","    env = Environment.SB,","    userId = \"USxxxxxxxxx\",","    password = \"\"","))","","// Production","val mpos = MPOSFinix(context, MerchantData(","    merchantId = \"MUxxxxxx\",","    mid = \"\",","    deviceId = \"DVxxxxx\",","    env = Environment.PROD,","    userId = \"USxxxxxxxxx\",","    password = \"\"","))"]},""],"metadata":{"steps":["merchant-data-shape","environment"]},"basename":"credentials.kt","language":"kotlin"}],"downloadAssociatedFiles":[]}],"steps":[{"id":"merchant-data-shape","heading":"MerchantData shape"},{"id":"environment","heading":"Sandbox and production"}],"inputs":{},"toggles":{}},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"credentials","__idx":0},"children":["Credentials"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["MerchantData"]}," object holds the credentials used to initialize the SDK. Pass it to the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["MPOSFinix"]}," constructor."]},{"$$mdtype":"Tag","name":"CodeStep","attributes":{"id":"merchant-data-shape","heading":"MerchantData shape"},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"kotlin","header":{"controls":{"copy":{}}},"source":"class MerchantData(\n    val merchantId: String,\n    val mid: String,\n    val deviceId: String,\n    val currency: Currency = Currency.USD,\n    val env: Environment = Environment.SB,\n    val userId: String,\n    val password: String\n)\n","lang":"kotlin"},"children":[]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Field"},"children":["Field"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Type"},"children":["Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["merchantId"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["String"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Your Finix Merchant ID (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["MU..."]},")."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["mid"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["String"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Merchant identifier number. Pass an empty string if not required."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["deviceId"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["String"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The Finix Device ID (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["DV..."]},") created during ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/android/card-present/device-setup"},"children":["device setup"]},"."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["currency"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Currency"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Transaction currency. Defaults to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Currency.USD"]},"."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["env"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Environment"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Environment.SB"]}," for sandbox, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Environment.PROD"]}," for production."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["userId"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["String"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Your Finix user ID (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["US..."]},")."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["password"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["String"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Your Finix API password."]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"sandbox-and-production","__idx":1},"children":["Sandbox and Production"]},{"$$mdtype":"Tag","name":"CodeStep","attributes":{"id":"environment","heading":"Sandbox and production"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Set ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["env"]}," to match the environment your device is designated for. Devices cannot switch environments after designation."]}]}]}]},"headings":[{"value":"Credentials","id":"credentials","depth":1},{"value":"Sandbox and Production","id":"sandbox-and-production","depth":2}],"frontmatter":{"seo":{"title":"Credentials | Android Card Present SDK Reference","description":"Reference for MerchantData credentials used to initialize the Finix Android Card Present SDK."},"markdown":{"toc":{"hide":true}},"footer":{"hide":true}},"lastModified":"2026-05-29T22:52:38.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/android/card-present/credentials","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}