---
updatedAt: 2026-11-06T23:55:54.000Z
agentTools:
  projectIndex: https://developer.fastspring.com/llms.txt
---

# 1ClickPay

Reduce friction and increase revenue by allowing customers to purchase with a single click.

FastSpring's **1ClickPay** feature verifies known customers, such as those who have previously purchased from your store and saved their payment methods, and serves up their saved information for instant checkout. By removing the friction of adding payment information, sellers can see an increase in both conversion rates and revenue.

<div class="spacer-sm"></div>

The sections below cover the benefits, the customer experience, and how to enable this feature. Select a card or use the TOC on the right to jump ahead.

<div class="spacer-sm"></div>

<Cards>
  <Card title="Benefits" href="#benefits-of-1clickpay" icon="fa-chart-line">
    Why you should implement 1ClickPay.
  </Card>
  <Card title="Experience" href="#customer-experience" icon="fa-laptop">
    Visualizing the "Save" and "Reuse" flows.
  </Card>
  <Card title="Implementation" href="#enable-1clickpay-for-your-customers" icon="fa-code">
    Technical steps to enable the feature.
  </Card>
  <Card title="FAQs" href="#faqs" icon="fa-question-circle">
    Common questions about payment methods.
  </Card>
</Cards>

<div class="spacer-md"></div>

## Benefits of 1ClickPay

1ClickPay is ideal for sellers who wish to offer frictionless additional purchases, such as premium add-ons, gaming credits, or consumption-based products.

<div class="spacer-sm"></div>

<Cards columns={2}>
  <Card title="Faster Checkout" icon="fa-bolt">
    Eliminates the need for repeat customers to go through a long checkout process, saving time.
  </Card>
  <Card title="Reduced Abandonment" icon="fa-cart-arrow-down">
    Minimizes the chance of cart abandonment by simplifying the steps required to buy.
  </Card>
  <Card title="Enhanced UX" icon="fa-face-smile">
    Customers appreciate the convenience of a simplified flow, leading to higher satisfaction.
  </Card>
  <Card title="Higher Conversion" icon="fa-arrow-trend-up">
    Removing barriers to transaction completion directly correlates to higher conversion rates.
  </Card>
</Cards>

<div class="spacer-md"></div>

## Customer experience

The 1ClickPay flow differs depending on whether the customer is making their first purchase (saving the payment method) or a returning purchase (using the saved method).

<div class="spacer-sm"></div>

<Tabs>
  <Tab title="First Purchase (Save)">
    <div class="spacer-sm"></div>
    1ClickPay uses the standard checkout experience but includes the ability to save payment details.
    **How it works:**
    1. The customer enters their payment details (card or PayPal) during a regular checkout.
    2. They select the checkbox to **Securely save payment details for future use** (for perpetual products) or **automated renewal** (for subscriptions).
    3. FastSpring tokenizes and securely stores the payment method.
    <Image align="center" border={true} width="39%" src="https://fastspring.com/wp-content/uploads/2023/09/Image-9-29-23-at-1.48-PM-695x1024.jpeg" className="border" />
    <div class="spacer-sm"></div>
  </Tab>
  <Tab title="Returning Purchase (Reuse)">
    <div class="spacer-sm"></div>
    When a known customer revisits the store, FastSpring recognizes them via their account identifier.
    **How it works:**
    1. The customer initiates a new purchase.
    2. FastSpring automatically displays the **default payment method** saved on file (card or PayPal).
    3. The customer completes the purchase with a single click.
    <Image align="center" border={true} width="40%" src="https://fastspring.com/wp-content/uploads/2023/09/Image-9-29-23-at-1.49-PM.jpeg" className="border" />
    <div class="spacer-sm"></div>
  </Tab>
  <Tab title="Managing Payments">
    <div class="spacer-sm"></div>
    Customers retain full control over their payment methods.
    * **Update Default:** If a customer updates their default payment method, the new method will be offered for upcoming purchases.
    * **Switch Method:** Customers can always opt to use a different payment method during checkout if they prefer not to use the stored one.
    <div class="spacer-sm"></div>
  </Tab>
</Tabs>

> **Security Note:** FastSpring does not store raw Credit Card, PayPal, Amazon Pay, ACH, or SEPA information. We tokenize the data and store it with the customer account.
>
> For saved cards, customers can only see the **last 4 digits** and the **expiration date**. For saved PayPal accounts, only the linked PayPal email is shown. This information is never shared with third parties.

<div class="spacer-md"></div>

## Enable 1ClickPay for your customers

1ClickPay must be enabled in the FastSpring app, and the stored payment method will only appear if you explicitly identify the returning customer in your store code.

### Prerequisites:

* A FastSpring store checkout (Web Checkouts are not supported).
* Familiarity with the <a href="https://developer.fastspring.com/reference/store-builder-library-overview">Store Builder Library</a> (SBL).

<div class="spacer-sm"></div>

<Accordion title="Step 1: Enable 1ClickPay in the FastSpring app" icon="fa-toggle-on">
<div class="spacer-sm"></div>
  Before configuring your storefront code, enable 1ClickPay in the FastSpring app UI.
  1. In the FastSpring app, navigate to **Settings** > **Store Settings**.
  2. Select the **Payments** tab.
  3. Under **Save Payment Options**, check one or more of the following:
     * **Enable 1ClickPay for cards** — stores customer card details for future purchases.
     * **Enable 1ClickPay for PayPal** — allows returning customers to pay with their saved PayPal account in one click.
     * **Enable 1ClickPay for Venmo**: allows returning customers to pay with their saved Venmo account in one click.

     The PayPal and Venmo options take effect only when **Enable 1ClickPay for cards** is also checked.
  4. Save your changes.
<div class="spacer-sm"></div>

</Accordion>

<Accordion title="Step 2: Include customer data in the payload" icon="fa-user-tag">
<div class="spacer-sm"></div>
  To unlock the stored payment method, you must identify the user in the checkout session. This user must have previously purchased a product and saved their payment details.
  In your payload, include the **contact** object with the following required fields:
  * `firstName`
  * `lastName`
  * `email`
  **Example Payload:**
  ~~~json
  "contact": {
    "email": "johndoe@gmail.com",
    "firstName": "John",
    "lastName": "Doe"
  }
  ~~~
<div class="spacer-sm"></div>

</Accordion>

<Accordion title="Step 3: Execute the secure request" icon="fa-code">
<div class="spacer-sm"></div>
  Once your payload is ready, pass it to the Store Builder Library using the `fastspring.builder.secure()` method.
  You should include the customer's unique FastSpring `account` ID in this request. You can retrieve this ID via the `order.completed` webhook or the API from their previous order.
  **Code Example:**
  ~~~javascript
  fastspring.builder.secure({
    account: 'fastSpringUniqueAccountID', // Pass the known Account ID here
    items: [
      {
        product: 'demo-product',
        quantity: 1
      }
    ]
  });
  ~~~
  After executing this request, call the FastSpring checkout method: `fastspring.builder.checkout()`
  
  The store will recognize the account ID, locate the stored token, and present the 1ClickPay option.
  > **Security Tip:** We highly recommend encrypting your payload to ensure data security during over-the-air (OTA) updates.
<div class="spacer-sm"></div>

</Accordion>

<Accordion title="Test the experience" icon="fa-flask">
<div class="spacer-sm"></div>
  You can experience the 1ClickPay flow using the FastSpring Examples tool.
    1.  **Build a session**
        Navigate to the <a href="https://fastspringexamples.com/method/fastspring-builder-securesecurepayload-securekey/">FastSpring Builder Secure tool</a> and click **Run**.
        * Ensure the payload contains the prerequisites mentioned above.
        * Enter your `data-storefront` and the associated `data-access-key` (found in **Developer Tools** > **Store Builder Library** > **Access Key**).
    2.  **Set up for 1ClickPay**
        Access the FastSpring checkout experience using a test link (instead of a live link) to enable test mode.
        **Example URL:**
        `yourstore.test.onfastspring.com/popup-acme`
        Complete a purchase using a FastSpring test card or PayPal sandbox account and ensure the **Securely save payment details for future use** checkbox is selected.
    3.  **Verify the flow**
        Without changing any details on the payload, click the **Run** button (top right), then click **Secure Checkout**.
        * FastSpring creates a new session, and you will see the saved payment option available for 1ClickPay.
<div class="spacer-sm"></div>

</Accordion>

<div class="spacer-md"></div>

## FAQs

<Accordion title="Will we ask for anything else other than the saved payment method?" icon="fa-question-circle">
  No. We will not ask for any other details from the customer. It really is one click.
</Accordion>

<Accordion title="Which payment methods are in scope?" icon="fa-credit-card">
  We currently support **cards** and **PayPal**. The selected payment method must be set as the default on the customer's account.
</Accordion>

<Accordion title="What happens if the saved payment method is no longer valid?" icon="fa-clock">
  If a saved card has expired, or a saved PayPal account is no longer authorized, we inform the customer and ask them to enter their payment details again.
</Accordion>

<Accordion title="Can users select another payment method if there is an issue?" icon="fa-shuffle">
  Yes. If there are any issues with the 1ClickPay method, or if the user simply changes their mind, they can select a different payment method offered in the regular checkout process.
</Accordion>