定制 ksolutionspro/payum-paynow 二次开发

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

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

ksolutionspro/payum-paynow

最新稳定版本:0.2

Composer 安装命令:

composer create-project ksolutionspro/payum-paynow

包简介

Payum support for paynow.pl payment gateway

README 文档

README

This is a basic Paynow.pl payment gateway for Payum.

Installation

To install this package, you can use composer:

composer require payum/paynow ksolutionspro/payum-paynow

Usage

Simply register the gateway factory and you're good to go.

Symfony integration

If you are planning to use this package with Symfony and PayumBundle, you can use the following configuration.

  1. Register the gateway factory in your services.yaml:
Ksolutions\PayumPaynow\PaynowGatewayFactory:
  class: Payum\Core\Bridge\Symfony\Builder\GatewayFactoryBuilder
  arguments: [ Ksolutions\PayumPaynow\PaynowGatewayFactory ]
  tags:
    - { name: payum.gateway_factory_builder, factory: paynow }
  1. Add the following configuration to your payum.yaml:
payum:
  gateways:
    paynow:
      factory: paynow
      api_key: 'your-api-key'
      signature_key: 'your-signature-key'
      sandbox: true # or false in production

Payment notification

To handle payment notifications, you need to configure your notification URL in the Paynow.pl panel.

In such route you should fetch the Payment and call Notify action on the gateway.

// logic to fetch the payment by 'paymentId' from notification body

$gateway = $payum->getGateway('paynow');
$gateway->execute(new Notify($payment));

You should return 202 Accepted status code if the notification was processed successfully.

Return 400 Bad Request if you were not able to process the notification.

Contribution

I'm not actively developing this package, so you're welcome to contribute.

Feel free to create a pull request. Be sure to add yourself to the contributors list below.

Contributors

Payum Resources

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-02-09