2017 © Pedro Peláez
 

symfony-bundle sms-payment-bundle

SMS payment bundle, with Paysera payment gateway integration.

image

ernestre/sms-payment-bundle

SMS payment bundle, with Paysera payment gateway integration.

  • Saturday, January 14, 2017
  • by ernestre
  • Repository
  • 1 Watchers
  • 0 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Symfony Paysera SMS Payment Bundle.

Build Status, (*1)

This bundle uses webtopay/libwebtopay library for accepting sms payments via Paysera payment gateway., (*2)

Install

composer require ernestre/sms-payment-bundle, (*3)

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., (*4)

Then SmsPaymentReceivedEvent event is dispatched containing the SmsPayment entity with all the payment information., (*5)

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

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

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., (*8)

The Versions

14/01 2017

dev-master

9999999-dev

SMS payment bundle, with Paysera payment gateway integration.

  Sources   Download

MIT

The Requires

 

by Ernest Rekel

14/01 2017

v1.0

1.0.0.0

SMS payment bundle, with Paysera payment gateway integration.

  Sources   Download

MIT

The Requires

 

by Ernest Rekel