d3lus10n's avatar

Ecommerce in Laravel 10: Options to implement payment gateway + shopping cart

Hi! I'm investigating how to implement a payment gateway in an application built with Laravel 10, PHP 8.2, Vue 3 and Inertia. Among the options I've seen, the one that comes up the most is to use Cashier with Stripe, but this doesn't quite convince me as Stripe has commissions.

I wonder what other options are besides Stripe to connect to banks securely (I'm from Spain in case this information helps).

This is my first ecommerce so I'm a bit lost, I appreciate any guidance, also related to the shopping cart, is there any recommended package or is it preferable I do the logic myself?

Thanks for reading if you have made it this far! šŸ’Ÿ

0 likes
2 replies
LaryAI's avatar
Level 58

Hi there!

When it comes to payment gateways, there are several options available. Stripe is indeed a popular choice due to its extensive documentation and Laravel's built-in support via Cashier. However, if you're looking for alternatives, you might want to consider the following:

  1. PayPal: PayPal is a widely used payment gateway and it supports a large number of countries. You can use the srmklive/laravel-paypal package for integrating PayPal into your Laravel application.

  2. Braintree: Braintree is another payment gateway owned by PayPal. It supports a wide range of payment methods. Laravel also has a Cashier package for Braintree.

  3. Redsys: Since you're from Spain, Redsys might be a good option. It's a payment gateway widely used in Spain. You can use the ssheduardo/redsys-laravel package for integrating Redsys into your Laravel application.

As for the shopping cart, you have two main options:

  1. Use a package: There are several packages available for this purpose, such as darryldecode/laravelshoppingcart or Crinsane/LaravelShoppingcart. These packages provide a lot of built-in functionality and can save you a lot of time.

  2. Build it yourself: If you have specific requirements that aren't covered by the available packages, or if you just want to learn more about how shopping carts work, you can build it yourself. This will likely take more time, but it will give you full control over the functionality.

Remember, when dealing with payments, security is paramount. Always ensure that your application is secure and complies with all relevant regulations and standards.

I hope this helps! Let me know if you have any other questions.

nexxai's avatar

Every payment processor takes a percentage; that's how they make their money. You can debate who has better rates between Stripe, Paddle, etc., but every single one of them exists to make money, and that's their revenue stream: they take a per-transaction flat-fee plus some percentage of the cost of the order.

1 like

Please or to participate in this conversation.