> ## Documentation Index
> Fetch the complete documentation index at: https://www.spacebring.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Payment gateway

> Learn how users make payments online, add, remove, and set default payments methods, and understand transaction statuses

With the [payment gateway connected](/integrations/payments) to the location, users can make online payments for all products and services.

## How users make payments

1. When making a booking or purchase, users select their [saved payment method](/billing/payments/payment-methods) or the "New payment method" option (or "PayPal", "Mercado Pago", or "KakaoPay" if these payment gateways are connected).
   <Frame>
     <img src="https://mintcdn.com/spacebring/KENyhoCg8_8hTt9t/images/billing-payments-payment-gateway-3.png?fit=max&auto=format&n=KENyhoCg8_8hTt9t&q=85&s=287fd762e64171bc9500a8787998d0bc" alt="Payment Gateway How Users Make Payments" width="1170" height="770" data-path="images/billing-payments-payment-gateway-3.png" />
   </Frame>
2. In case of the "New payment method" option, users are redirected to the payment page of the payment gateway. There, they can see all the [payment methods your payment gateway supports](/integrations/payments/overview) and complete the payment.  In case of the "New payment method" option, users are redirected to the payment page of the payment gateway. There, they can see all the [payment methods your payment gateway supports](/integrations/payments) and complete the payment.
   <Frame>
     <img src="https://mintcdn.com/spacebring/KENyhoCg8_8hTt9t/images/billing-payments-payment-gateway-3.png?fit=max&auto=format&n=KENyhoCg8_8hTt9t&q=85&s=287fd762e64171bc9500a8787998d0bc" alt="Payment Gateway Payment Page" width="1170" height="770" data-path="images/billing-payments-payment-gateway-3.png" />
   </Frame>
3. For each initiated payment, users can see a transaction and its status.
   * Users can check it from the **Membership** > **Billing** > **Transactions** page.
   * Administrators can check all transactions from the **Billing** > **Transactions** page.
4. Upon successful payment, users see a confirmation on their screen and receive an automated email containing both their payment receipt and invoice.

## Understand transaction statuses

| Transaction status | Meaning                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| :----------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Paid               | The payment has been successfully completed. The booking or purchase appears on the corresponding page in the member web portal, member mobile app, and Spacebring.                                                                                                                                                                                                                                                                                                          |
| Pending            | <ul><li>The user has opened the payment page but still needs to complete the payment. The transaction remains "Pending" for 15 minutes. If the customer doesn't pay within this window, the transaction automatically moves to "Canceled" status.</li><li>The administrator created a booking using an "External" payment method and set the status to "Pending". The transaction will remain "Pending" until an administrator updates it to "Paid" or "Canceled".</li></ul> |
| Processing         | The payment attempt has been completed by the user, and the user's bank must confirm the payment.                                                                                                                                                                                                                                                                                                                                                                            |
| Canceled           | <ul><li>The user opened and closed the payment page without completing the payment within 15 minutes.</li><li>The administrator manually [<u>updated the transaction status from "Pending" to "Canceled"</u>](/billing/payments/external).</li></ul>                                                                                                                                                                                                                         |
| Failed             | The payment was initiated by the user but was declined by the payment gateway for some reason, e.g., an insufficient balance or an issue with the user's bank. [<u>Troubleshoot failed transactions</u>](/integrations/payments/stripe/troubleshoot-stripe-payments)                                                                                                                                                                                                         |

## Manage payment methods

If you have a [Stripe](/integrations/payments/stripe), [WayForPay](/integrations/payments/wayforpay), or [Tap](/integrations/payments/tap) payment gateway connected, customers can have their payment methods saved for quick and automatic payments.

### Add a payment method

The user's payment method is automatically saved once they make at least one payment using it, but it can also be added manually.

Customers can add their payment method as follows:

1. Go to **Membership** > **Billing**.
   * Individual members go to the "Personal" section on **Membership**.
   * Company managers go to the section with their company name.
2. Under the "Payment methods" section, press `Add` and input their details.

<Frame>
  <img src="https://mintcdn.com/spacebring/Ozxzc1dtVyFXpD1t/images/billing-payments-payment-gateway-1.png?fit=max&auto=format&n=Ozxzc1dtVyFXpD1t&q=85&s=a710544ff7beb007b1ee77a1cf639d00" alt="" width="2684" height="1388" data-path="images/billing-payments-payment-gateway-1.png" />
</Frame>

Administrators can also add a payment method for a customer, if needed:

1. Go to **Customers** > open a customer profile.
2. In the "Payment methods" section, click `Add`.

<Frame>
  <img src="https://mintcdn.com/spacebring/Ozxzc1dtVyFXpD1t/images/billing-payments-payment-gateway-2.png?fit=max&auto=format&n=Ozxzc1dtVyFXpD1t&q=85&s=3928318055deaea0535d139735d44c6a" alt="" width="2404" height="1308" data-path="images/billing-payments-payment-gateway-2.png" />
</Frame>

3. Add a payment method > `Save`.

Administrators can use customers' saved payment methods for:

* Making a booking on behalf of a customer
* [Charging customer invoices](/billing/invoicing/charge-an-invoice)
* [Creating one-off payments to charge the customer.](/billing/payments/create-a-one-off-payment)

### Set a default payment method

The default payment method is used for [automatic invoice charges](/billing/subscriptions/invoice-auto-charge) by subscription. The user's payment method is automatically saved as the default one once they pay at least one invoice using it, but it can also be set as default manually.

Customers can set their payment method as default by following these steps:

1. Go to **Membership** > **Billing.**
2. Click `(...)` next to the preliminary added payment method.
3. Press `Set as default`.

Administrators can also set a payment method as default for a customer, if needed:

1. Go to **Customers** > open a customer profile.
2. Click `(...)` next to the preliminary added payment method.
3. Press `Set as default`.

### Change a default payment method

Users can change the default payment method, as follows:

1. Go to **Locations** > **Membership** > **Billing**.
2. Under the "Payment methods" section, press `Add` > input the details.
3. Once saved, click `(...)` next to the new payment method > hit `Set as default`.
4. Delete the previous one, if needed. ​

Administrators can also change a default payment method for a customer, if needed:

1. Go to **Customers** > open a customer profile.
2. Click `(...)` next to the preliminary added payment method.
3. Press `Set as default`.

### Delete a payment method

Users can delete their saved payment method, as follows:

1. Members and company managers go to **Locations** > **Membership** > **Billing.**
2. Tap `(...)` next to the payment method > `Delete`.

<Frame>
  <img src="https://mintcdn.com/spacebring/Ozxzc1dtVyFXpD1t/images/billing-payments-payment-gateway-5.png?fit=max&auto=format&n=Ozxzc1dtVyFXpD1t&q=85&s=3817061c644ee041b82e3ad03bdb688b" alt="" width="2608" height="1186" data-path="images/billing-payments-payment-gateway-5.png" />
</Frame>

Administrators can also delete a payment method for a customer, if needed:

1. Go to **Customers** > open a customer profile.
2. Click `(...)` next to the payment method > `Delete`.

<Frame>
  <img src="https://mintcdn.com/spacebring/Ozxzc1dtVyFXpD1t/images/billing-payments-payment-gateway-6.png?fit=max&auto=format&n=Ozxzc1dtVyFXpD1t&q=85&s=a0816c22189539ffe2c2cd4771ec5264" alt="" width="2858" height="1484" data-path="images/billing-payments-payment-gateway-6.png" />
</Frame>

#### Delete a default payment method

Customers with an active subscription can’t delete their default payment method. They must first add a new payment method and set it as the default. After that, they can delete the previous one.

Administrators, however, can delete a customer’s default payment method even when the customer has an active subscription. This permission is available only to administrators.

<Tip>
  To stop automatic charges for the customer, you can also [disable "Auto-pay](/billing/subscriptions/invoice-auto-charge)" instead of deleting their payment method. When "Auto-pay" is disabled, the customer will not be charged automatically, despite having a default payment method on file. They will receive invoices instead and can pay them manually.
</Tip>

**FAQ​s**

<Accordion title="How can I check what payment gateway the user paid with?">
  To check what payment gateway the user paid with for the booking or purchase, follow the next steps:

  1. Navigate to Spacebring > **Analytics** > press `Create report` button top right and select "Transactions" type.
  2. Set the necessary start and end dates, status, and press `Download`.
  3. Find the necessary transaction and check the "Payment type" row to see the payment gateway.
</Accordion>
