Overview
Credit cards are the most commonly accepted payment method type and are enabled automatically when you sign up for a merchant account with Braintree.
Use Card Fields to accept secure credit card and debit card payments. Card Fields is recommended for merchants who want a custom checkout with SDK-managed card entry. The SDK manages the card number, expiration date, and CVV fields, and handles formatting, validation, card brand detection, and tokenization. You control everything else in your checkout.
To get started, configure your account, then add Card Fields on the client side. Send the resulting payment method nonce to your server to create the transaction on the server side.
Start with Standard client-side to integrate using Card Fields.
Before you initialize Card Fields, generate a client token on your server. If you already have a client token, you don't need to generate a new one. Card Fields uses this authorization to tokenize the card details and return a payment method nonce. See Hello, Server for a complete walkthrough of creating a client token and Client Setup for an example of requesting the client token.