Testing | laravel-stripe-webhooks-rust | Spatie       

 SPATIE  

laravel-stripe-webhooks-rust
============================

spatie.be/open-source

  [Docs](https://spatie.be/docs)  [Laravel-stripe-webhooks-rust](https://spatie.be/docs/laravel-stripe-webhooks-rust/v1)  Testing

 Version   v1      

 Other versions for crawler [v1](https://spatie.be/docs/laravel-stripe-webhooks-rust/v1) 

  Testing    
- [ Introduction ](https://spatie.be/docs/laravel-stripe-webhooks-rust/v1/introduction)
- [ Support us ](https://spatie.be/docs/laravel-stripe-webhooks-rust/v1/support-us)
- [ Installation and setup ](https://spatie.be/docs/laravel-stripe-webhooks-rust/v1/installation-and-setup)
- [ Usage ](https://spatie.be/docs/laravel-stripe-webhooks-rust/v1/usage)
- [ Advanced usage ](https://spatie.be/docs/laravel-stripe-webhooks-rust/v1/advanced-usage)
- [ Testing ](https://spatie.be/docs/laravel-stripe-webhooks-rust/v1/testing)
- [ Changelog ](https://spatie.be/docs/laravel-stripe-webhooks-rust/v1/changelog)

 Testing
=======

Run these checks from the package directory:

```
cargo fmt --all -- --check
cargo clippy --locked --all-targets --all-features -- -D warnings
cargo test --locked --all-targets --all-features
cargo test --locked --doc --all-features
cargo doc --locked --no-deps --all-features
cargo package --locked
```

Set `RUSTDOCFLAGS` to `-D warnings` when running the documentation commands. In POSIX shells, prefix each command with `RUSTDOCFLAGS='-D warnings'`. In PowerShell, first run `$env:RUSTDOCFLAGS = '-D warnings'`.

README.md and all Markdown pages in docs/ participate in rustdoc tests. Setup lines prefixed with `# ` compile and execute but are hidden in rendered rustdoc. Assertions check the examples' results.

Check the minimum supported Rust version:

```
rustup toolchain install 1.99.0 --profile minimal
cargo +1.99.0 test --locked --all-targets --all-features
cargo +1.99.0 test --locked --doc --all-features
```

Check security advisories:

```
cargo install cargo-audit --locked
cargo audit
```

CI runs stable checks on Linux, macOS and Windows, and the MSRV and audit checks on Linux. An audit requires access to the RustSec advisory database.

The tests boot real Laravel applications with isolated in-memory SQLite databases. They run the client's migration through Package Tools, send signed HTTP requests, inspect stored calls and verify native event and queue dispatch. They cover body-ID duplicate filtering, named Connect secrets, retries, invalid event types and replacement signature, profile, response, model and per-event jobs. No live Stripe account is needed.

Signature fixtures are independently computed with Python's standard `hmac` module. Boundary tests cover the exact five-minute tolerance, both sides of it, changed body bytes, multiple rotation signatures and malformed headers. The outgoing HTTP guide runs against Laravel's HTTP fake with stray requests forbidden.

SQLite is exercised locally. MySQL and PostgreSQL feature builds do not by themselves verify those servers. To test a real Stripe delivery, use Stripe CLI forwarding with its own webhook signing secret, then confirm the stored payload and your application's job effects.

 A good
match?
-------------

### What we do best

- All things Laravel
- Custom frontend components
- Building APIs
- AI-powered features
- Simplifying things
- Clean solutions
- Integrating services

### Not our cup of tea

- WordPress themes
- Cutting corners
- Free mockups to win a job
- "Just execute the briefing"

 In short: we'd like to be a **substantial part** of your project.

 [ Get in touch via email ](mailto:info@spatie.be?subject=A%20good%20match%21&body=Tell%20us%20as%20much%20as%20you%20can%20about%0A-%20your%20online%20project%0A-%20your%20planning%0A-%20your%20budget%0A-%20%E2%80%A6%0A%0AAnything%20that%20helps%20us%20to%20start%20straightforward%21)
