Skip to content

A Laravel package for the chilean payment provider payku.cl

Notifications You must be signed in to change notification settings

juanklagos/laravel-payku

 
 

Repository files navigation

Laravel Payku

📦 A simple implementation, and ready to use package for Payku.

Requirements

  • Laravel 8 or above

Installation

composer require sebacarrasco93/laravel-payku

Adding .env keys

You need to create a public and private token. You can create and get it from:

PAYKU_PUBLIC_TOKEN={your_public_token}
PAYKU_PRIVATE_TOKEN={your_private_token}

Important:

Laravel Payku automatically will set the environment URL based in your APP_ENV key, in your .env project's file

For example, if you set your APP_ENV to local, it will use https://des.payku.cl/api

APP_ENV=local # will set https://des.payku.cl/api

Otherwise, if your APP_ENV is on production, it will use https://app.payku.cl/api

APP_ENV=production # will set https://app.payku.cl/api

If you want to force a specific API URL in another environment, you can learn how to do it

Usage

Example of a method

//

Easy Peasy!

Extra

If you want more control, you can publish the migrations and configuration

php artisan vendor:publish --provider="SebaCarrasco93\LaravelPayku\LaravelPaykuServiceProvider"

Testing

./vendor/bin/pest

About

A Laravel package for the chilean payment provider payku.cl

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 93.4%
  • Blade 6.6%