> For the complete documentation index, see [llms.txt](https://simpaypl.gitbook.io/simpay-laravel/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://simpaypl.gitbook.io/simpay-laravel/usage.md).

# Usage

SimPay-Laravel is accessible through two methods:

1. Facade:

   ```php
   use SimPay\Laravel\Facades\SimPay;

   SimPay::payment();
   SimPay::directBilling();
   SimPay::sms();
   ```
2. Using app container:

   ```php
   app('simpay')->payment();
   app('simpay')->directBilling();
   app('simpay')->sms();
   ```

{% hint style="warning" %}
Our library does not create any routes for you - you have to manually\
register routes for IPN handling.\
With this library you can create transactions, get transaction information and validate IPN signature.
{% endhint %}
