Skip to main content
Version: Live

Custom Placeholder Text

Pay Theory input fields use predefined string resources for placeholder text. Override these strings in your app's strings.xml file to customize the placeholders.

Card Payment Fields​

FieldString Resource NameDefault Text
Card Numberpt_card_numberCard number
CVVpt_cvvCVV
Expirationpt_expirationExpiration
Name on Cardpt_name_on_card_accountName on Account

Bank Account Fields​

FieldString Resource NameDefault Text
Account Numberpt_bank_account_numberBank Account Number
Routing Numberpt_bank_routing_numberBank Routing Number
Account Typept_account_typeAccount Type
Name on Accountpt_name_on_bank_accountName on Account

Cash Payment Fields​

FieldString Resource NameDefault Text
Contact Infopt_cash_contactPhone or Email
Full Namept_cash_nameFull Name

Billing Address Fields​

FieldString Resource NameDefault Text
Address Line 1pt_billing_addressAddress Line 1
Address Line 2pt_billing_address_contAddress Line 2
Citypt_cityCity
Regionpt_regionRegion
Postal Codept_billing_postal_codePostal Code

Example: Customizing Card Fields​

To customize the placeholders, add the strings you want to override to your app's strings.xml:

<resources>
<!-- Custom Card Field Placeholders -->
<string name="pt_card_number">Enter your card number</string>
<string name="pt_cvv">Security code</string>
<string name="pt_expiration">MM/YY</string>
<string name="pt_name_on_card_account">Cardholder name</string>
</resources>