承接 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();

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固