goodypay/goodypay-calculator

A payment calculator library for GoodyPay.

Installs: 9

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0

pkg:composer/goodypay/goodypay-calculator

dev-master 2023-04-28 10:37 UTC

This package is auto-updated.

Last update: 2025-10-28 16:07:36 UTC


README

Table of Contents

  1. Features
  2. Installation
  3. Requirements
  4. Guide
    1. Using GoodyPayCalculator Class
    2. For direct use using the static method
  5. Contributors

Features

Calculate the pricing of base on Paymongo specifically for **Card, E-Wallet and Online Banking**

Installation

Run

composer require goodypay/goodypay-calculator

composer install

Requirements

PHP version 5.3.0

Guide

1. Using GoodyPayCalculator Class

  • GoodyPayCalculator::Compute('paymentMethod', $amount, true)
  • Accept payment method such as "Gcash", "Paymaya", "Grabpay", "Card", "Online banking"
  • Compute ("Gcash", 3000, true)
    • Gcash (Payment Method)
    • 3000 (Amount)
    • true (Foreign, specific for online banking)

2. For direct use using the static method

  • GoodyPayCalculator::ComputeGcash ($amount)
  • GoodyPayCalculator::ComputeCard ($amount, $foreign = null)
  • GoodyPayCalculator::ComputeOnlineBanking ($amount)
  • GoodyPayCalculator::ComputeGrabPay ($amount)
  • GoodyPayCalculator::ComputeMaya ($amount)

Contributors