**Last updated**: 20 November 2025 | [**Change log**](/products/checkout/react-native/changelog/) # Create a session to pay with a card Use our React Native SDK to secure your customer's card details by creating a `session`. Full Sample Integration You can see an example of the session generation [here](https://github.com/Worldpay/access-checkout-react-native/tree/master/demo-app). ## Set your views When you create your checkout form, you must set the views that your customers use to enter and submit their card details. Here's an example of how you would set your view configurations. JavaScript import React, {useState} from 'react'; import {Button, TextInput, View} from 'react-native'; export default function CardFlow() { const [pan, setPan] = useState (''); const [expiryDate, setExpiryDate] = useState (''); const [cvc, setCvc] = useState (''); function createSession() { ... } return (