Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

CookieMonster's avatar

payment integration without using Cashier(Stripe) subscription?

I have a online courier system when user can make and order a delivery parcel to a recipient. As far as it goes, user once the order is finalized, the user can pay with credit(like e-wallet) and it will process the order. And I keep the order and details in Orders table. Now I've want to add an alternative payment using credit card/debit card instead of paying with credit.

From what it looks like, many recommended using laravel cashier (stripe). Thing is it is based on subscription services and I do not need it since my flow only involves making a payment and saving the order details to the table.

Would it be do-able or is there other alternative payment processor that I can use?

0 likes
9 replies
jlrdw's avatar

If dealing with credit cards, you don't store them, you will require a payment gateway. It requires being PCI compliant.

You need to study up on this and perhaps view some videos here, Jeffrey cover PCI compliance.

You do not need cashier, but you need to choose a payment gateway, it doesn't have to be Stripe.

CookieMonster's avatar

So laravel stripe will not be suitable for my case? I do not want to store any CC information, just want the user to make a one time payment and process their order.

jlrdw's avatar

Stripe has one time payments. I suggest going over their documentation to see what all they offer. But there are other payment gateways as well.

If you are going to accept credit cards, you will have to pay for a payment gateway service. Otherwise, you will need to consult with a Lawyer to assist you in getting PCI compliant.

But believe me it's easier to pay the Gateway fees and let them worry about the laws involved and the compliance.

But why not watch the @jeffreyway video and learn a little more about this stuff first.

https://laracasts.com/series/how-to-accept-payments-with-stripe

Search for other series as well. Read this post as well:

https://laracasts.com/discuss/channels/tips/best-way-to-save-credit-cart-info

CookieMonster's avatar

Even if you store the last 4 digits of the CC number is against the laws and compliance?

Based on the laracast video by Jeffrey that you shared, i noticed a lot have changed since the video was made in 2016.

jlrdw's avatar

PCI is a standard you can lookup and study more about. Just take a little time and study up on these various things for a while.

1 like
Snapey's avatar

the payment provider will give you back the last four digits so that you can store them in case you need to remind the user how they paid

Integrating with Stripe or paypal is very easy for one time payments, however I would never recommend anyone use paypal because they have incredibly arcane account setup processes and their support is the worst in the industry

1 like
CookieMonster's avatar

I see. Based on what I need is checkout one time payment right?

Because I can install two different version:

composer require laravel/cashier

or

composer require stripe/stripe-php

I believe Cashier has checkout single payments as well. I think the latter will be enough for my use case.

jlrdw's avatar

@snapey been a while, but I used paypal in the past. Maybe things have changed, but I had some excellent tech support help. I guess somehow all worked good for me. Just saying Paypal is big and well known.

CookieMonster's avatar

The laracast series is a paid subscription so I could only watch the first video for free.

As for what I am looking for, I think I can use install stripe directly without using cashier like:

composer require stripe/stripe-php at least that's what the doc says.

Please or to participate in this conversation.