> For the complete documentation index, see [llms.txt](https://docs.klai.studio/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.klai.studio/engineering-reference-docs/software-testing-overview/ux-ui-checklist/flows/making-a-payment.md).

# Making a payment 💳

When paying for something online, two thoughts will come to mind for the user: is this safe, and is this clear? A well-designed payment experience covers these by communicating what's happening with a user's money, and that it's all happening securely.

* [ ] \[Offer payment methods

  Credit card is the most popular method and can be considered the default.

  Other methods are welcome, but their success sits on a spectrum. Some can add friction for users, while others can add security and/or convenience.
* [ ] Request card details

  Show all relevant text fields to complete. Consider the size of these fields relative to the details entered.

  Note: in a product where the user is revisiting and saved payment methods are available, consider a flow that allows the user to add/remove payment methods.
* [ ] Submit payment with card details entered

  It's also important to consider validation before a user submits their details.

  Numbers can be mistyped, the card may have expired - so make sure these numerous error states are addressed.
* [ ] Show payment processing

  A payment may not be triggered instantly, taking a few seconds (or minutes). A loading page is crucial to calm the user’s nerves in regards to what’s happening to their money.
* [ ] Confirmation payment processed successfully

  It’s a success! Clearly indicate to the user that their payment was processed, and the funds was received.
* [ ] Outline next steps

  What now? Does the payment trigger something? If so, let the user know.

  Example 1: a physical product has been purchased. Once the payment has processed, tell the user the order is in motion.

  Example 2: a user signed up for a subscription. Offer a link to continue to the product to start using it.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.klai.studio/engineering-reference-docs/software-testing-overview/ux-ui-checklist/flows/making-a-payment.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
