定制 bionyxxx/wijayapay-php 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bionyxxx/wijayapay-php

最新稳定版本:v1.0.2

Composer 安装命令:

composer require bionyxxx/wijayapay-php

包简介

WijayaPay Payment Gateway PHP Library

README 文档

README

This is the official PHP wrapper for the WijayaPay Payment Gateway API.

Installation

composer require bionyxxx/wijayapay-php --dev

Usage

Configuration

use WijayaPay\Config;
use WijayaPay\WijayaPay;

$config = new Config(
    'YOUR_MERCHANT_CODE', // code_merchant
    'YOUR_API_KEY',       // api_key
    true                  // isProduction (true/false)
);

$wijayaPay = new WijayaPay($config);

Get Payment Channels

Get the list of active payment channels.

try {
    $channels = $wijayaPay->payment()->getChannels();
    print_r($channels);
} catch (Exception $e) {
    echo "Error: " . $e->getMessage();
}

Create Transaction

Create a new payment request.

try {
    $response = $wijayaPay->transaction()->create([
        'ref_id'       => 'ORDER-12345',
        'code_payment' => 'QRIS',
        'nominal'      => 100000,
        // Add other parameters if needed
    ]);

    print_r($response);
} catch (Exception $e) {
    echo "Error: " . $e->getMessage();
}

Check Transaction Status

Check the status of a transaction using its reference ID.

try {
    $refId = 'ORDER-12345';
    $status = $wijayaPay->transaction()->checkStatus($refId);
    print_r($status);
} catch (Exception $e) {
    echo "Error: " . $e->getMessage();
}

Webhook Handling

Handle incoming callbacks from WijayaPay.

use WijayaPay\Webhook\WebhookHandler;

$handler = new WebhookHandler();

// Get the data
$data = $handler->parse();

// Process your logic here with $data...
// e.g. update transaction status in database

// Return success response to WijayaPay
header('Content-Type: application/json');
echo $handler->successResponse();

统计信息

  • 总下载量: 6
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-12-10