> For the complete documentation index, see [llms.txt](https://richnologies.gitbook.io/ngx-stripe/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://richnologies.gitbook.io/ngx-stripe/core-concepts/reference-and-instance.md).

# Reference & Instance

For situations where the module has any mistakes or missing methods (I'm aware it has) you can now access both your elements instance and a reference to Stripe:

```typescript
import { Component, OnInit } from '@angular/core';

import { StripeService } from 'ngx-stripe';

@Component({
  selector: 'app-stripe-test',
  templateUrl: 'stripe.html'
})
export class StripeTestComponent implements OnInit {

  constructor(
    private fb: FormBuilder,
    private stripeSerivce: StripeService
  ) {}

  ngOnInit() {
    // this is equivalent to window.Stipe, but it make sure the module is loaded
    const Stripe$: Observable<any> = this.stripeService.getStripeReference();

    // this is a reference to the stripe elements object
    const stripe = this.stripeService.getInstance();
  }
}
```
