- How do I install owen-it/laravel-pagseguro in a Laravel app?
- Install it with Composer by running composer require owen-it/laravel-pagseguro. Laravel package auto-discovery should register the service provider, but older Laravel versions may require adding it manually in config/app.php. Check the repository README and composer.json for any publishable configuration and version constraints before installing.
- Which Laravel versions are compatible with owen-it/laravel-pagseguro?
- Compatibility depends on the package's composer.json constraints, and this wrapper targets older Laravel versions. It has low maintenance activity, so verify support for your Laravel release before adopting it. For newer Laravel versions, you may need to fork the package or adjust dependencies.
- How do I configure PagSeguro credentials and sandbox mode in Laravel?
- Publish or create the package configuration file and set your PagSeguro email and token, typically through environment variables. Choose the sandbox environment during development and production only with live credentials. Keep tokens out of version control and clear config caches after changes.
- How do I create a PagSeguro payment request with this package?
- Use the package's fluent interface to build a payment request with items, sender details, shipping, and payment method. You can use it for checkout or transparent payment flows depending on your integration. Then submit the request through the package and store the returned payment or transaction identifier.
- How do I handle PagSeguro notification webhooks in Laravel?
- Create a route that accepts PagSeguro notifications without CSRF protection and extract the notification code. Use the package to query the related transaction and update your order status based on the returned payment state. Respond with a success HTTP status and make the handler idempotent because notifications can be resent.
- Can I query transaction status with owen-it/laravel-pagseguro?
- Yes, the wrapper provides transaction query support so you can look up a PagSeguro transaction by its code. Use this alongside notification handling to reconcile asynchronous status changes. Persist the transaction code when creating payments so you can query it later.
- Is owen-it/laravel-pagseguro safe for production use?
- The package has low adoption and maintenance activity, so assess its current state before using it in production. Pin a known version, review the code and dependencies, and monitor for PagSeguro API changes. For critical payments, compare against official SDKs or a maintained integration.
- How do I test PagSeguro payments in sandbox with Laravel?
- Configure the package for the sandbox environment and use sandbox seller credentials, not live tokens. Create test payment requests and simulate notifications or query transactions to confirm your application updates order status correctly. Keep sandbox and production configuration separated.
- What alternatives exist to owen-it/laravel-pagseguro?
- You can use PagSeguro's official SDKs or call the PagSeguro APIs directly with Laravel's HTTP client. Other community Laravel packages may exist, but compare their maintenance and API coverage. If you need newer PagSeguro features, a custom integration may be more reliable than an older wrapper.
- Does owen-it/laravel-pagseguro support PIX, boleto, and credit card?
- The wrapper targets PagSeguro's older payment request APIs, which commonly support credit card and boleto flows. PIX and newer PagSeguro API features are unlikely to be covered by this older package. Confirm the payment methods you need against the package source and PagSeguro's current documentation.