paycom/integration-template

此包最新版本(1.0.2)没有提供许可证信息。

一组类,用于轻松集成Paycom(Payme)支付系统

1.0.2 2017-04-28 09:50 UTC

This package is not auto-updated.

Last update: 2024-09-23 06:57:15 UTC


README

请使用以下最新的仓库代替 https://github.com/PaycomUZ/paycom-integration-php-template

Paycom集成模板

先决条件

  • PHP 5.4 或更高版本
  • PDO 扩展
  • Composer 依赖管理器

通过Composer安装

将当前目录更改为您的项目文件夹,然后安装包

cd my-shop-project
composer create-project paycom/integration-template

通过Git安装

git clone https://github.com/umidjons/paycom-integration-php-template.git
cd paycom-integration-php-template
composer dumpautoload

从现在起,您可以按以下方式使用包中的类

<?php
// File `my-shop-project/api/index.php`
require_once 'vendor/autoload.php';

use Paycom\Application;

// load configuration
$paycomConfig = require_once 'paycom.config.php';

$application = new Application($paycomConfig);
$application->run();

paycom.config.sample.php的副本作为paycom.config.php进行复制,并在其中设置实际设置。

假设您的域为https://myshop.uz,现在您可以设置入口URL以处理来自Paycom的请求,为https://myshop.uz/api/index.php