Payments usage

The most important feature out of the box is the payment class.

  • Laralum\Payments\Payment

    This class contains the logic to process payments.

    Example usage:

    $payment = new Payment();
    $payment->ammount(12000) // in cents
            ->currency('EUR')
            ->source($request->stripeToken)
            ->description("My Order")
            ->pay();
    if (!$payment) {
        return redirect()->route('laralum_public::shop.orders')->with('error', __('laralum_shop::shop.buy_error'));
    }
    

Did you know?

Laralum is translated with aitor24/laralang, a translation package able to autogenerate php translations files.


Donations

Please consider donating if you liked the project, we currently have no funding and we're spending a lot of time maintaining and developing this project.


The creators

Èrik Campobadal Forés

Aitor Riba Archilla


Major Contributors

Krishan König

Laraketai

Snow McFox