negusnati/chapa-laravel-11x

A Laravel Package to Accept Payment through Chapa

dev-main 2024-07-04 20:20 UTC

This package is auto-updated.

Last update: 2024-09-04 20:42:32 UTC


README

Chapa Logo

Official Laravel package for Chapa's API (Support for Laravel ^11)

If your are doing a Laravel project and want to integrate Chapa's payment solution, this package would help big time.

Go to Chapa to signup and get your secret key

Composer install

'composer require negusnati/chapa-laravel-11x'

Documentation

Please visit Chapa for full documentation.

Guide

Please visit Developers Guide for full guide and examples.

Usage

You can check this sample Laravel code as a reference.

Configuration

Open your .env file and add your public key, secret keys, and other environment variables like this:

CHAPA_SECRET_KEY=CHAPA-SECK-xxxxxxxxxxxxxxxxxxxxx-X

Features

The current features have been implemented

  • Initiate Payment
  • Payment verification

API Reference

Collecting Customer Information

  POST https://api.chapa.co/v1/transaction/initialize

Verify Payments

  GET https://api.chapa.dev/v1/transaction/verify/{tx-ref}

Changelog

Please see CHANGELOG for more information what has changed recently.

Security

If you discover any security related issues, please email kidusy@chapa.co instead of using the issue tracker.

License

The MIT License (MIT). Please see License File for more information.