# Payment

Formsort does not store credit card information - we use the third-party payment provider to obtain a payment token that is provided as an answer. You are responsible for using the token to actually charge the customer.

As a consequence, if a user enters payment information and then reloads, their credit card information will not be visible, although the fact that it has been collected will be known, and they will be allowed to continue.

## Stripe <a href="#stripe" id="stripe"></a>

[Stripe](https://www.stripe.com/) allows for simple credit card payments online. The [Stripe Integration page](https://docs.formsort.com/integrations/integration-reference/stripe) guides you through enabling **Stripe** in your flow. Once you have entered **Stripe** credentials, simply select 'stripe' as a 'provider' for a Payment question.&#x20;

If you do not wish to charge customers from within a Formsort flow, but rather, only aim to verify their card information, the **Allow charging the card immediately** option should be disabled.

If you do wish to charge customers from within a Formsort flow, the **Allow charging the card immediately** should be enabled. Once enabled, choose whether to charge users a fixed amount, or an amount calculated by a [variable](https://docs.formsort.com/response-data-collection-and-management/variable-schema). From the flow, Users will  be asked to input credit card information. After they enter their information, a **Charge my card** button will appear automatically

{% hint style="info" %}
The amounts users will be charged must be defined as an integer representing the number of **cents** to charge the user. If you were hoping to charge, for example, $10.00, you would enter 1000. The same applies for money amounts calculated by variable.
{% endhint %}

## Affirm <a href="#affirm" id="affirm"></a>

[Affirm](https://www.affirm.com/) is a payment option well-suited for large purchases - rather than charging the full amount upfront, customers can pay monthly to finance their purchases.

When the `affirm` payment provider is chosen for a question, you must set three values:

* Production Affirm API key: Your production public API key.
* Beta Affirm API key: Your sandbox public API key.
* Lastly, the Checkout object template: The [checkout object](https://docs.affirm.com/affirm-developers/docs/create-a-checkout-object) to pass to the Affirm integration. Note that this is a templated string, so you can use variable templating to set values within this JSON object, such as the price, the responder's billing address, etc.


---

# Agent Instructions: 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:

```
GET https://docs.formsort.com/adding-questions-and-content/question-reference/payment.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
