birkof/netopia-mobilpay-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

birkof/netopia-mobilpay-bundle

最新稳定版本:v2.0.1

Composer 安装命令:

composer require birkof/netopia-mobilpay-bundle

包简介

Seamless integration of Netopia MobilPay Payment Gateway into your Symfony application

README 文档

README

This bundle provides an easy way to integrate MobilPay.ro Payment Gateway into your Symfony application.

Compatibility

It's compatible with Symfony 3.4 LTS and Symfony 4.0 (and later).

Installation

You just require using composer and you're good to go!

composer require birkof/netopia-mobilpay-bundle

If you don't use Flex, you need to manually enable bundle in your kernel:

<?php
// app/AppKernel.php
public function registerBundles()
{
    $bundles = [
        // ...
        new birkof\NetopiaMobilPay\NetopiaMobilPayBundle(),
    ];
}

Configuration

Configuration typically lives in the config/packages/netopia_mobilpay.yaml file for a Symfony 4 application.

# config/packages/netopia_mobilpay.yaml

netopia_mobilpay:
    payment_url:    '%env(NETOPIA_MOBILPAY_PAYMENT_URL)%'
    public_cert:    '%env(NETOPIA_MOBILPAY_PUBLIC_CERT)%' // Allowed to pass the certificate content directly as well as its file path
    private_key:    '%env(NETOPIA_MOBILPAY_PRIVATE_KEY)%' // Allowed to pass the key content directly as well as its file path
    signature:      '%env(NETOPIA_MOBILPAY_SIGNATURE)%'

You should define NETOPIA_MOBILPAY_PAYMENT_URL, NETOPIA_MOBILPAY_PUBLIC_CERT, NETOPIA_MOBILPAY_PRIVATE_KEY and NETOPIA_MOBILPAY_SIGNATURE in your environment variables.

If you're still using the old, non-environment system:

# app/config/config.yml

netopia_mobilpay:
    payment_url:  '%netopia_mobilpay_payment_url%'
    public_cert:  '%netopia_mobilpay_public_cert%'
    private_key:  '%netopia_mobilpay_private_key%'
    signature:    '%netopia_mobilpay_signature%'

And define netopia_mobilpay_payment_url, netopia_mobilpay_public_cert, netopia_mobilpay_private_key and netopia_mobilpay_signature parameters in app/config/parameters.yml file.

Documentation

The bulk of the documentation is stored in the ./src/Resources/doc/index.md file in this bundle:

Read the Documentation

License

This bundle is under the MIT license. See the complete license in the bundle:

Read the License

Features, Bugs and Collaborating

All of the code is provided as-is. We will not provide on-going support for any bugs that may be found. Please submit bug and features requests - we will review them but we do not guarantee that they will be addressed. Pull requests are welcome and we'll review them as quickly as we can.

统计信息

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

GitHub 信息

  • Stars: 5
  • Watchers: 1
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-07-26