Giter VIP home page Giter VIP logo

payummodule's Introduction

SWUbanner


Supporting Payum

Payum is an MIT-licensed open source project with its ongoing development made possible entirely by the support of community and our customers. If you'd like to join them, please consider:


Payum

Join the chat at https://gitter.im/Payum/Payum Unit Tests Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

Reduce Your Development Time with Payum integrating more than 50 payment services simultaneously. Payum is one of the most popular bug-free solution that has over 1 000 000 downloads already. It is friendly for all top PHP frameworks and was successfully installed and tested by thousands of developers worldwide

Resources

License

Payum is released under the MIT License.

Sponsors

payummodule's People

Contributors

evkoh avatar jaike avatar makasim avatar mtudor avatar nickurt avatar nimedia avatar perfect-web avatar zaibi099 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

payummodule's Issues

Sofort:Class 'Sofort\SofortLib\Multipay' not found

I am trying to integrate the pa-yum So-fort Method in Zend Framework 2 I Have create the Controller method like this:

namespace Reisesparer\Controller;

use Payum\Core\Request\GetHumanStatus;
use Zend\Mvc\Controller\AbstractActionController;
use Zend\Di\ServiceLocator;
use Zend\View\Model\JsonModel;
use Zend\View\Model\ViewModel;
use Sofort\SofortLib;



class PaymentController extends AbstractActionController
{
 public function sofortAction()
{
    $storage = $this->getServiceLocator()->get('payum')->getStorage('Payum\Sofort\SofortLib\Sofortueberweisung');
   $configkey = '12345:12345:5dbdad2bc861d907eedfd9528127d002';
   
   $Sofortueberweisung = new Sofortueberweisung($configkey);
   $Sofortueberweisung->setAmount(10.21);
   $Sofortueberweisung->setCurrencyCode('EUR');
   $Sofortueberweisung->setReason('Testueberweisung', 'Verwendungszweck');
  


$Sofortueberweisung->sendRequest();

}

And I got the error:

 Class 'Sofort\SofortLib\Multipay' not found in Payum\Sofort\SofortLib\Sofortueberweisung.php

How I can Fix this one?

Update for payum core 1.4.* ?

Hello,

we would like to get the benefit of that bugfix and want to upgrade our system to payum core 1.4.x. But this requirement fails while we install payum/payum-module:

 - Conclusion: don't install payum/payum 1.4.x-dev
    - payum/payum-module 0.15.0 requires payum/core 0.15.*@dev -> satisfiable by payum/payum[0.15.4], payum/core[0.15.1, 0.15.3, 0.15.x-dev].
    - Can only install one of: payum/payum[1.4.3, 0.15.4].
    - don't install payum/core 0.15.1|don't install payum/payum 1.4.3

It is planned to support payum core 1.4.x with tha module?

That would be great. Thank you.

Regards

Bug: View resolver could not resolve to a file after redirect()

Hey guys,

at first I must say your library is great and it saves a lot of time. Thank you for the excellent work!

While implementing this module I had a strange behaviour. I saw the following message over and over in the PHP error log but the module was working like expected:

Zend\View\Renderer\PhpRenderer::render: Unable to render template "payum/capture/do"; resolver could not resolve to a file

It turnded out the ZF2 redirect plugin just sends the HTTP redirection header, but the initial request is processed to the end at the server. I found out that instead of just using
$this->redirect()->toUrl($reply->getUrl());
within your controllers, you should return it(or false) to prevent further processing of the request. (@see http://framework.zend.com/manual/current/en/modules/zend.mvc.plugins.html#redirect-plugin)

Fatal error: Uncaught Error: Call to undefined method Payum\PayumModule\Registry\ServiceLocatorAwareRegistry::getStorage()

I followed your doc to do the implementation but getting the undefined method error.

composer require "payum/payum-module:*@stable" "payum/paypal-express-checkout-nvp:*@stable" "payum/omnipay-bridge:*@stable"

config

use Payum\Core\Storage\FilesystemStorage;
use Payum\Paypal\ExpressCheckout\Nvp\PaypalExpressCheckoutGatewayFactory;
use Payum\Stripe\StripeJsGatewayFactory;
use Payum\OmnipayBridge\OmnipayGatewayFactory;

$paypalFactory = new PaypalExpressCheckoutGatewayFactory();
$omnipayFactory = new OmnipayGatewayFactory();

return array(
    'payum' => array(
        'token_storage' => new FilesystemStorage(
            __DIR__.'/../../data/payment',
            'App\Model\PaymentSecurityToken',
            'hash'
        ),
        'payments' => array(
            'paypal_ec' => $paypalFactory->create(array(
                'username' => 'xxx',
                'password' => 'xxx',
                'signature' => 'Axxx',
                'sandbox' => true
            )),
            'stripe_via_omnipay' => $omnipayFactory->create([
                'type' => 'Stripe',
                'apiKey' => 'dfdfd',
                'testMode' => true,
            ]),
        ),
        'storages' => array(
            'Matchmaker\Model\PaymentDetails' => new FilesystemStorage(
                __DIR__.'/../../data/payment',
                'App\Model\PaymentDetails',
                'id'
            )
        ),
    ),
);

if the payments is changed to gateways 'payum' could not be instantiated exception thrown.

Controller:
$storage = $this->getServiceLocator()->get('payum')->getStorage('Matchmaker\Model\PaymentDetails');

I am not sure PayumModule is still working with your stable code. Can you take a look at doc and guide me to fix the issue.

Thank you,

Payum\Core\Storage\FilesystemStorage::__set_state() with ZendCache enabled

When I have this as my config file

<?php
use Buzz\Client\Curl;
use Payum\Core\Extension\StorageExtension;
use Payum\Core\Storage\FilesystemStorage;
use Payum\Paypal\ExpressCheckout\Nvp\Api;
use Payum\Paypal\ExpressCheckout\Nvp\PaymentFactory;

return array(
    'payum' => array(
        'token_storage' => new FilesystemStorage(
            __DIR__.'/../../data/cache',
            'Payments\Model\PaymentSecurityToken',
            'hash'
        ),
        'payments' => array(
            'paypal' => PaymentFactory::create(new Api(new Curl(), array(
                'username'  =>  '{username}',
                'password'  =>  '{password}',
                'signature' =>  '{signature}',
                'sandbox'   =>  true
            )))
        ),
        'storages' => array(
            'Payments\Model\PaymentDetails' => new FilesystemStorage(__DIR__.'/../../data/cache', 'Payments\Model\PaymentDetails'),
        )
    ),
);

And I enabled the Zend Config & Module Cache, I get this error

Fatal error: Call to undefined method Payum\Core\Storage\FilesystemStorage::__set_state() in [..]/httpdocs/data/cache/module-config-cache.2245023265ae4cf87d02c8b6ba991139.php on line 1433

How can I solve this?

How to add the Doctrine mapping of the Payum Core models?

Hello,

I am using Zend Framework with Doctrine and I would like to use the Payum Doctrine storage.
But I can't load the Payum's Core models mappings properly.
My Doctrine configuration inside the module where my entities are is:

'doctrine' => array (
    'driver' => array (
        'Payum_models' => array (
            'class' => 'Doctrine\ORM\Mapping\Driver\SimplifiedXmlDriver',
            'cache' => 'array',
            'paths' => array(
                __DIR__ . '/../../../vendor/payum/payum/src/Payum/Core/Bridge/Doctrine/Resources/mapping',
            )
        ),
        __NAMESPACE__ . '_entities' => array (
            'class' => 'Doctrine\ORM\Mapping\Driver\AnnotationDriver',
            'cache' => 'array',
            'paths' => array(
                __DIR__ . '/../src/' . __NAMESPACE__ . '/Entity',
            )
        ),
        'orm_default' => array(
            'drivers' => array(
                'Payum\Core\Model' => 'Payum_models',
                __NAMESPACE__ . '\Entity' => __NAMESPACE__ . '_entities',
            )
        )
    )
),

And I receive the following error:

[Doctrine\Common\Persistence\Mapping\MappingException]
File mapping drivers must have a valid directory path, however the given path 0 seems to be incorrect!

Could you please help me how to configure the Payum Core Doctrine mappings correctly?
Thank you in advance!

omnipaybridge example

Does anyone have a working example for using OmniPaybridge with PayumModule?

It seems like they should work together, and I can get OmniPaybridge working outside of PayumModule and I can I can PayumModule working ok with paypal express (and have put a few sites live using this code), I just can't work out how to make them work together.

Ideally with the Sagepay Server gateway, but at this point i'd settle for any of the Omnipay gateways!

factories

there is no way to inject the payments or storages from the service locator, this is a HUGE minus, it renders it unusable since you cant set the doctrine manager into the Payum\Core\Bridge\Doctrine\Storage\DoctrineStorage for example

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.