Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Paypal Laravel Package

swisstheme-sarl/paypal

A PayPal integration package for Laravel and PHP applications, offering a convenient way to connect to PayPal APIs for payments, transactions, and related workflows while simplifying configuration and usage in your project.

View on GitHub
Deep Wiki
Context7

At a glance

Frequently asked questions about Paypal
How do I install swisstheme-sarl/paypal in a Laravel application?
Install the package with Composer using composer require swisstheme-sarl/paypal. Then publish any provided configuration file if the README instructs you to, and set your PayPal API credentials and redirect URLs in .env. Define routes that match PAYPAL_RETURN_URL and PAYPAL_CANCEL_URL before testing the flow. Finally, run the payment flow in PayPal sandbox before deploying.
What Laravel and PHP versions does this PayPal package support?
The provided assessment does not list explicit Laravel or PHP version constraints. Check the package composer.json for require constraints and compare them with your application’s Laravel and PHP versions. If constraints are missing or overly broad, test the integration in a staging environment before relying on it in production.
How do I configure PayPal API credentials and redirect URLs for this package?
Set your PayPal client ID, secret, and mode using the environment variable names documented by the package, and add PAYPAL_RETURN_URL and PAYPAL_CANCEL_URL to your .env file. The redirect URLs should point to routes in your Laravel application that handle successful returns and cancelled checkouts. Also add the same keys to .env.example so other environments are configured consistently. If the package provides a config file, publish it and confirm it reads values through Laravel’s config system.
Why are users redirected to parentsolo.ch after PayPal checkout?
The package defaults its return and cancel URLs to the author’s domain, parentsolo.ch, when PAYPAL_RETURN_URL and PAYPAL_CANCEL_URL are not set. That default is likely a leftover from the author’s project and is not appropriate for production applications. Override both variables in every environment and verify the resolved URLs after running php artisan config:cache. Treat missing redirect configuration as a deployment blocker.
Does this package support PayPal webhooks, subscriptions, refunds, or only redirect payments?
The available assessment only confirms redirect-based payment flows using return and cancel URLs. It does not establish support for webhooks, subscriptions, refunds, vaulting, or detailed error states. Review the README and source code before depending on those features. If you need them, confirm the package exposes the required PayPal API calls or plan to implement them separately.
Are PAYPAL_RETURN_URL and PAYPAL_CANCEL_URL cache-safe with php artisan config:cache?
Cache safety depends on how the package reads the variables. Runtime code should access them through Laravel’s config() helper rather than calling env() directly outside config files. Before production, run php artisan config:cache and confirm the generated PayPal redirect URLs still point to your application. If they do not, move the values into a published config file and reference them through config().
Is upgrading to version 1.0.2 safe for existing PayPal integrations?
Version 1.0.2 is described as a minor patch that adds backward-compatible environment variable support for return and cancel URLs. Existing integrations should continue to work, but you should still set the new variables to avoid the default parentsolo.ch redirect. After upgrading with Composer, clear cached configuration and retest the success, cancel, and error paths in sandbox.
What routes and controllers do I need for PayPal return and cancel callbacks?
Create Laravel routes whose URLs exactly match PAYPAL_RETURN_URL and PAYPAL_CANCEL_URL, then implement controllers to confirm or capture the payment and handle cancellation. Validate the PayPal response and your own order state rather than trusting query parameters alone. Make sure the routes are reachable by the user’s browser after PayPal redirects them back. Test both routes in sandbox before deployment.
How do I test this PayPal integration safely in sandbox?
Use PayPal sandbox credentials and set the package to sandbox mode as documented. Configure sandbox return and cancel URLs that point to your local or staging Laravel routes, then test successful payment, cancellation, and failure scenarios. Verify behavior after running php artisan config:cache so production-like configuration is covered. Do not use live credentials until the full redirect flow is confirmed.
Is swisstheme-sarl/paypal actively maintained, and what alternatives exist if it is abandoned?
The assessment does not confirm the package’s maintenance activity, test coverage, or license details, so check the GitHub commit history, issues, releases, and composer.json license before adopting it. Pin a known version and monitor for updates, especially around PayPal API changes. If maintenance stops, you can fork and patch the package or evaluate alternatives such as PayPal’s official REST SDK or Omnipay PayPal integration. Plan for the possibility that your team may need to own the integration.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
uni-method/symfony-lib
tacticmedia/scim-server-bundle
neika-ai/symfony-bundle
mattleads/agent-publishing-bundle
glavweb/framework-bundle
glavweb/extra-bundle
glavweb/api-bundle
glavweb/admin-bundle
adachsoft/api-version-bundle
elsayed85/laravel-api-exceptions
ouhssini/laravel-demo-mode
daworks/ncloud-outbound-mailer-driver
gp247/cms
ignibyte/aic-gates
nexa-merchant/blog
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager