2017 © Pedro Peláez
 

library payum-perfectmoney

The Payum extension. It provides Perfectmoney payment integration.

image

antqa/payum-perfectmoney

The Payum extension. It provides Perfectmoney payment integration.

  • Saturday, May 7, 2016
  • by piotrantosik
  • Repository
  • 2 Watchers
  • 4 Stars
  • 368 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 3 % Grown

The README.md

Payum Perfect Money

Build Status Total Downloads Latest Stable Version, (*1)

The Payum extension. It provides Perfect Money payment integration., (*2)

Installation

$ composer require antqa/payum-perfectmoney

Configuration

<?php

use Payum\Core\PayumBuilder;
use Payum\Core\Payum;

$payum = (new PayumBuilder)
    ->addGatewayFactory('perfectmoney', function(array $config, GatewayFactoryInterface $coreGatewayFactory) {
        return new \Antqa\Payum\Perfectmoney\PerfectMoneyGatewayFactory($config, $coreGatewayFactory)
    })
    ->addGateway('perfectmoney', [
        'factory' => 'perfectmoney',
        'sandbox' => true,
        'alternate_passphrase' => 'place here',
        'payee_account' => 'place here',
        'display_name' => 'place here',
    ])
    ->getPayum()
;

Payment

Additional parameters

use Payum\Core\Model\PaymentInterface;
use Antqa\Payum\Perfectmoney\Api;

/** @var PaymentInterface $payment */
$payment->setDetails([
    Api::FIELD_SUGGESTED_MEMO => sprintf('Payment - %s', $product),
    Api::FIELD_PAYMENT_URL_METHOD = 'POST',
    Api::FIELD_NOPAYMENT_URL_METHOD = 'POST',
]);

Symfony integration

#services.yml

app.payum.perfectmoney.factory_builder:
    class: Payum\Core\Bridge\Symfony\Builder\GatewayFactoryBuilder
    arguments:
        - Antqa\Payum\Perfectmoney\PerfectMoneyGatewayFactory
    tags:
        - { name: payum.gateway_factory_builder, factory: perfectmoney }

Configuration

#config.yml

payum:
    gateways_v2:
        perfectmoney:
            factory: perfectmoney
            payee_account: %perfectmoney_account%
            alternate_passphrase: %perfectmoney_alternate_passphrase%
            sandbox: %payment_sandbox%
            display_name: place_here

License

Payum Perfect Money is released under the MIT License., (*3)

The Versions

07/05 2016

dev-master

9999999-dev https://www.ant.qa

The Payum extension. It provides Perfectmoney payment integration.

  Sources   Download

MIT

The Requires

 

The Development Requires

payment symfony payum perfectmoney perfect money

13/03 2016

1.0.1

1.0.1.0 https://www.ant.qa

The Payum extension. It provides Perfectmoney payment integration.

  Sources   Download

MIT

The Requires

 

The Development Requires

payment symfony payum perfectmoney perfect money

29/02 2016

1.0.0

1.0.0.0 https://www.ant.qa

The Payum extension. It provides Perfectmoney payment integration.

  Sources   Download

MIT

The Requires

 

The Development Requires

payment symfony payum perfectmoney perfect money