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

Taghreed01's avatar

Integrating Laravel with custom payment API

I am working on a Laravel project and need to consume a private REST API for Payments, which is, on the other hand, integrated with Payfort.

Is there a specific modern way of doing this in 5.8?

Should I create a service provider or some other class for this etc?

Can anyone point me at a tutorial or a GitHub project?

0 likes
1 reply
automica's avatar

@taghreed01 you could look laravel cashier as the basis for this, which will give you the scaffold you need at laravel end and the place to wrap your custom payment method.

Be sure to check you’re installing the branch suitable for your version of laravel https://laravel.com/docs/5.8/billing

Please or to participate in this conversation.