> For the complete documentation index, see [llms.txt](https://docs.ionicfirebaseapp.com/clothingapp/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ionicfirebaseapp.com/clothingapp/payment/stripe.md).

# Stripe

* Goto [https://stripe.com](https://stripe.com/).
* Create an testing/production account in order to test the Stripe Payment Gateway. You will need to verify your Stripe account is in 'test' mode, and get test API credentials. You can find *Test Secret Key*& \_Test Publishable Key in your Stripe Account in Dashboard > API section.

![](/files/-LCTAPlvSFXwfnTuVxmZ)

* Paste*Test Secret Key*& \_Test Publishable Key under src > pages > checkout > checkout.ts.
* Genuine card information cannot be used in test mode. Instead, use any of the following test card numbers, a valid expiration date in the future, and any random CVC number, to create a successful payment. Each test card's billing country is set to U.S. If you need to create test card payments using cards for other billing countries, use our [international test cards](https://stripe.com/docs/testing#international-cards).

| NUMBER           | BRAND                 |
| ---------------- | --------------------- |
| 4242424242424242 | Visa                  |
| 4000056655665556 | Visa (debit)          |
| 5555555555554444 | Mastercard            |
| 2223003122003222 | Mastercard (2-series) |
| 5200828282828210 | Mastercard (debit)    |
| 5105105105105100 | Mastercard (prepaid)  |
| 378282246310005  | American Express      |
| 371449635398431  | American Express      |
| 6011111111111117 | Discover              |
| 6011000990139424 | Discover              |
| 30569309025904   | Diners Club           |
| 38520000023237   | Diners Club           |
| 3530111333300000 | JCB                   |

You have successfully added stripe payments to your project.


---

# 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.ionicfirebaseapp.com/clothingapp/payment/stripe.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.
