承接 ernestre/sms-payment-bundle 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

ernestre/sms-payment-bundle

Composer 安装命令:

composer require ernestre/sms-payment-bundle

包简介

SMS payment bundle, with Paysera payment gateway integration.

README 文档

README

Build Status

This bundle uses webtopay/libwebtopay library for accepting sms payments via Paysera payment gateway.

Install

composer require ernestre/sms-payment-bundle

Configuration

  • Add bundle to app/AppKernel:
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new Ernestre\PaymentBundle\ErnestrePaymentBundle(),
            // ...
        );
    }
    // ...
}
  • Add routes:
ernestre_payment:
    resource: "@ErnestrePaymentBundle/Controller/"
    type:     annotation
  • Add configuration:
ernestre_payment:
  project:
    id:             123 # Your project id
    sign_password:  123 # Your project's sign password
  • Configure sms callback route to /sms-callback in your Paysera project settings.

Usage

After each received payment, SmsPayment entity is created and saved to the database.

Then SmsPaymentReceivedEvent event is dispatched containing the SmsPayment entity with all the payment information.

Then the action sends NOSMS response. ( Detailed information about response messages can be found here . )

Your job is to create a listener which listens to smsPayment.received event and do what ever you need with the payment information.

However, using the NOSMS response message requires you to send a payment confirmation message back to the Paysera serivce. You can use ernestre_payment.sms_payment.answer_sender service to generate this response message. Service's send method requires the SmsPayment entity and response text (which will be sent to the client). The response text can be used to send some king of code (i.e. discount coupon) to the client.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-01-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固