Test payment outcomes locally
Use the built-in payment simulator to check a paid receipt, a declined payment, and a buyer retry.
Browse guides
On this page
Enable the simulator#
Use a development store with Laravel’s environment set to local or testing. In the existing payments array in config/sellissimo.php, add simulator. This example enables the simulator as the store’s only gateway.
'payments' => ['simulator'],
Run php artisan config:clear and check out with a priced item. Choose the simulator and follow the signed payment link. A zero-total checkout completes without a gateway. The simulator does not process real funds and is unavailable in production.
Verify three outcomes#
- Success. Confirm the order is paid and the receipt shows the expected amount. For a digital item, open the purchased download. A simulated refund lets you check how a fully refunded line loses access.
- Decline. Use a fresh cart. Check that the unsuccessful order releases its tracked stock and that the receipt offers Try payment again.
- Expiry. Use another fresh cart and choose expiry. Follow the retry link, review current stock and prices, then complete the new order. The first order retains its history.
Use Stripe test mode or Mollie test mode to check a real provider’s hosted checkout and callbacks.