{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-android/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["code-walkthrough","step"]},"type":"markdown"},"seo":{"title":"PaymentSheetResources | Android SDK Reference","description":"Reference for PaymentSheetResources — customize the logo, button labels, and text strings in the Finix Android PaymentSheet.","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/online/_filesets/resources.kt","content":[{"start":0,"condition":{"steps":["resources-shape"]},"children":["data class PaymentSheetResources(","    @DrawableRes val logoDrawable: Int = R.drawable.ic_default_logo,","    @StringRes val logoText: Int = R.string.default_logo_text,","    @StringRes val tokenizeButtonText: Int = R.string.btn_tokenize,","    @StringRes val cancelButtonText: Int = R.string.btn_cancel,","    val cancelButtonWeight: Float = 0.6f,","    val tokenizeButtonWeight: Float = 0.8f,",")"]},"",{"start":11,"condition":{"steps":["param-logo"]},"children":["PaymentSheetResources(","    logoDrawable = R.drawable.my_logo,","    logoText = R.string.my_brand_name",")"]},"",{"start":18,"condition":{"steps":["param-buttons"]},"children":["PaymentSheetResources(","    tokenizeButtonText = R.string.pay_now,","    cancelButtonText = R.string.go_back",")"]},"",{"start":25,"condition":{"steps":["param-button-weight"]},"children":["// Wider tokenize button, narrower cancel button","PaymentSheetResources(","    tokenizeButtonWeight = 1.0f,","    cancelButtonWeight = 0.5f",")"]},"",{"start":33,"condition":{"steps":["full-example"]},"children":["CompletePaymentSheetOutlined(","    applicationId = \"APgPDQrLD52TYvqazjHJJchM\",","    isSandbox = false,","    paymentSheetResources = PaymentSheetResources(","        logoDrawable = R.drawable.my_logo,","        logoText = R.string.my_brand_name,","        tokenizeButtonText = R.string.pay_now,","        cancelButtonText = R.string.go_back,","        tokenizeButtonWeight = 1.0f,","        cancelButtonWeight = 0.5f","    ),","    onDismiss = { viewModel.setShowPaymentSheet(false) },","    onNegativeClick = { viewModel.setShowPaymentSheet(false) },","    onPositiveClick = { token ->","        viewModel.saveTokenResponse(token)","        viewModel.setShowPaymentSheet(false)","    }",")"]},""],"metadata":{"steps":["resources-shape","param-logo","param-buttons","param-button-weight","full-example"]},"basename":"resources.kt","language":"kotlin"}],"downloadAssociatedFiles":[]}],"steps":[{"id":"resources-shape","heading":"PaymentSheetResources shape"},{"id":"param-logo","heading":"logoDrawable / logoText"},{"id":"param-buttons","heading":"tokenizeButtonText / cancelButtonText"},{"id":"param-button-weight","heading":"tokenizeButtonWeight / cancelButtonWeight"},{"id":"full-example","heading":"Full example"}],"inputs":{},"toggles":{}},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"paymentsheetresources","__idx":0},"children":["PaymentSheetResources"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Controls the images and text displayed in the PaymentSheet. Pass an instance to the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["paymentSheetResources"]}," parameter of any ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/android/online/payment-sheet"},"children":["PaymentSheet"]}," composable."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["All properties are optional. Omit any you don't need and the default value will be used."]},{"$$mdtype":"Tag","name":"CodeStep","attributes":{"id":"resources-shape","heading":"PaymentSheetResources shape"},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"kotlin","header":{"controls":{"copy":{}}},"source":"data class PaymentSheetResources(\n    @DrawableRes val logoDrawable: Int = R.drawable.ic_default_logo,\n    @StringRes  val logoText: Int = R.string.default_logo_text,\n    @StringRes  val tokenizeButtonText: Int = R.string.btn_tokenize,\n    @StringRes  val cancelButtonText: Int = R.string.btn_cancel,\n    val cancelButtonWeight: Float = 0.6f,\n    val tokenizeButtonWeight: Float = 0.8f,\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":"Property"},"children":["Property"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Type"},"children":["Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Default"},"children":["Default"]},{"$$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":["logoDrawable"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@DrawableRes Int"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Finix default logo"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Drawable resource displayed in the top-left of the form."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["logoText"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@StringRes Int"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"Daphne's Corner\""]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String resource displayed next to the logo."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tokenizeButtonText"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@StringRes Int"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"Tokenize\""]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Label for the submit button."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cancelButtonText"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@StringRes Int"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"Cancel\""]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Label for the cancel button."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tokenizeButtonWeight"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Float"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["0.8"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Horizontal weight of the submit button relative to the cancel button."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cancelButtonWeight"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Float"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["0.6"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Horizontal weight of the cancel button relative to the submit button."]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"logo","__idx":1},"children":["Logo"]},{"$$mdtype":"Tag","name":"CodeStep","attributes":{"id":"param-logo","heading":"logoDrawable / logoText"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["logoDrawable"]}," sets the image displayed at the top of the form. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["logoText"]}," sets the label displayed to the right of the image."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Both accept Android resource references defined in your ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["res/"]}," directory."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"button-labels","__idx":2},"children":["Button Labels"]},{"$$mdtype":"Tag","name":"CodeStep","attributes":{"id":"param-buttons","heading":"tokenizeButtonText / cancelButtonText"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Override the default button labels with your own string resources. Common overrides: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"Pay Now\""]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"Confirm\""]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"Back\""]},"."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"button-sizing","__idx":3},"children":["Button Sizing"]},{"$$mdtype":"Tag","name":"CodeStep","attributes":{"id":"param-button-weight","heading":"tokenizeButtonWeight / cancelButtonWeight"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Controls the relative horizontal size of each button. A higher weight results in a wider button. Both default to less than ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["1.0"]}," to leave padding around the buttons."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"full-example","__idx":4},"children":["Full Example"]},{"$$mdtype":"Tag","name":"CodeStep","attributes":{"id":"full-example","heading":"Full example"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Pass ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PaymentSheetResources"]}," to any PaymentSheet composable via the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["paymentSheetResources"]}," parameter."]}]}]}]},"headings":[{"value":"PaymentSheetResources","id":"paymentsheetresources","depth":1},{"value":"Logo","id":"logo","depth":2},{"value":"Button Labels","id":"button-labels","depth":2},{"value":"Button Sizing","id":"button-sizing","depth":2},{"value":"Full Example","id":"full-example","depth":2}],"frontmatter":{"seo":{"title":"PaymentSheetResources | Android SDK Reference","description":"Reference for PaymentSheetResources — customize the logo, button labels, and text strings in the Finix Android PaymentSheet."},"markdown":{"toc":{"hide":true}},"footer":{"hide":true}},"lastModified":"2026-05-18T23:35:10.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/android/online/resources","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}