Search by

rohama / koin-payping

rohama

Koin — PayPing gateway driver (REST API v3)

Package info

github.com/rohamaa/Koin-PayPing

pkg:composer/rohama/koin-payping

Statistics

Installs: 3

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

2.2.1 2026-10-23 08:17 UTC

This package is auto-updated.

Last update: 2026-10-23 17:47:16 UTC


README

Docs site · Docs on GitHub

The PayPing gateway driver for the Koin package — built on PayPing's REST API v3.

Install

composer require rohama/koin-payping

Features

  • Payment request — returns code + redirect URL (/pay/)
  • Verify
  • Refund
  • Callback parsing

Configuration

Field Description
apiKey API token

Usage

use Rohama\Koin\Payping\PaypingGateway;
use Rohama\Koin\Support\PaymentStatus;

$gateway = new PaypingGateway('token', 'https://example.com/callback');

$payment = $gateway->request(150000, 'ORDER-1', 'Subscription purchase');

if ($payment->isSuccessful()) {
    header('Location: ' . $payment->redirectUrl);
    exit;
}

// In the callback page — parseCallback runs verify() before reporting success
$callback = $gateway->parseCallback($_GET, $_POST);
if ($callback->status === PaymentStatus::SUCCESS) {
    // Verified
}

refund() (in gateways that offer Refund) is available only when the developer-only 5th constructor parameter (refundable) is enabled.

Full documentation: https://rohamaa.github.io/Koin-Core/