alicele1512/weareicers_payment

A payment processing library for various gateways like MoMo, Stripe, PayPal, and Card.

dev-main 2025-02-05 11:41 UTC

This package is auto-updated.

Last update: 2025-08-05 12:36:37 UTC


README

A payment processing library for various gateways like MoMo, Stripe, PayPal, and Card.

Source Code Latest Version Software License

Donate

If you'd like to support the project, please donate via: Buy Me a Coffee Sponsor Sponsor

Usage Example

use WeareicersPayment\Helpers\PaymentHelper;

$trans_id = PaymentHelper::generateTransactionId(); $formattedAmount = PaymentHelper::formatCurrency(100.0, 'USD'); PaymentHelper::logTransaction("Transaction $trans_id: Payment of $formattedAmount initiated."); $isValidAmount = PaymentHelper::validateAmount(100.0);

if ($isValidAmount) { // Proceed with the payment processing } else { // Handle invalid amount }

Installation

You can install the package via Composer:

composer require alicele1512/weareicers_payment:dev-main

or

git clone https://github.com/alicele1512/weareicers_payment.git