# Service

Once imported, you can inject the `StripeService` anywhere you need. The stripe script will be loaded the first time the service is injected.

The stripe service exposes the same methods as the **StripeJS** instance but with typescript types. The API is based on **Observables** so it can be combined with other actions.

This is a full list of the methods available in the Stripe Service. In the future more details will be added to this docs. In the mean time you can check the official StripeJS [docs](https://stripe.com/docs/js) for more details:

#### confirmAuBecsDebitPayment

#### [confirmBancontactPayment](https://stripe.com/docs/js/payment_intents/confirm_bancontact_payment)

#### [confirmCardPayment](https://stripe.com/docs/js/payment_intents/confirm_card_payment)

#### [confirmEpsPayment](https://stripe.com/docs/js/payment_intents/confirm_eps_payment)

#### [confirmFpxPayment](https://stripe.com/docs/js/payment_intents/confirm_fpx_payment)

#### [confirmGiropayPayment](https://stripe.com/docs/js/payment_intents/confirm_giropay_payment)

#### [confirmIdealPayment](https://stripe.com/docs/js/payment_intents/confirm_ideal_payment)

#### [confirmP24Payment](https://stripe.com/docs/js/payment_intents/confirm_p24_payment)

#### [confirmSepaDebitPayment](https://stripe.com/docs/js/payment_intents/confirm_sepa_debit_payment)

#### [handleCardAction](https://stripe.com/docs/js/payment_intents/handle_card_action)

#### [createPaymentMethod](https://stripe.com/docs/js/payment_methods/create_payment_method)

#### [retrievePaymentIntent](https://stripe.com/docs/js/payment_intents/retrieve_payment_intent)

#### confirmAuBecsDebitSetup

#### [confirmCardSetup](https://stripe.com/docs/js/setup_intents/confirm_card_setup)

#### [confirmSepaDebitSetup](https://stripe.com/docs/js/setup_intents/confirm_sepa_debit_setup)

#### [retrieveSetupIntent](https://stripe.com/docs/js/setup_intents/retrieve_setup_intent)

#### [paymentRequest](https://stripe.com/docs/js/payment_request/create)

#### [createToken](https://stripe.com/docs/js/tokens_sources/create_token?type=cardElement)

#### [createSource](https://stripe.com/docs/js/tokens_sources/create_source)

#### [retrieveSource](https://stripe.com/docs/js/tokens_sources/retrieve_source)

#### \[DEPRECATED] [handleCardPayment](https://stripe.com/docs/js/deprecated/handle_card_payment_element)

#### \[DEPRECATED] [confirmPaymentIntent](https://stripe.com/docs/js/deprecated/confirm_payment_intent_element)

#### \[DEPRECATED] [handleCardSetup](https://stripe.com/docs/js/deprecated/handle_card_setup)

#### \[DEPRECATED] [confirmSetupIntent](https://stripe.com/docs/js/deprecated/confirm_setup_intent)

#### \[DEPRECATED] [handleFpxPayment](https://stripe.com/docs/js/deprecated/handle_fpx_payment)


---

# 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://richnologies.gitbook.io/ngx-stripe/core-concepts/service.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.
