Giter VIP home page Giter VIP logo

payumyiiextension's Introduction

Payum Yii Extension

Join the chat at https://gitter.im/Payum/Payum

The extension integrates payum into yii framework. It already supports +35 payments. Provide nice configuration layer, secured capture controller, storages and lots of other features.

Resources

Developed by Forma-Pro

Forma-Pro is a full stack development company which interests also spread to open source development. Being a team of strong professionals we have an aim an ability to help community by developing cutting edge solutions in the areas of e-commerce, docker & microservice oriented architecture where we have accumulated a huge many-years experience. Our main specialization is Symfony framework based solution, but we are always looking to the technologies that allow us to do our job the best way. We are committed to creating solutions that revolutionize the way how things are developed in aspects of architecture & scalability.

If you have any questions and inquires about our open source development, this product particularly or any other matter feel free to contact at [email protected]

License

PayumYiiExtension is released under the MIT License.

payumyiiextension's People

Contributors

alexandernst avatar makasim avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

payumyiiextension's Issues

Release

I think we're ready for a release (currently the extension isn't working, so we'll fix this with the current release).
There is just #14 which needs to get merged before releasing.

After the release, I'll start working on active record support and when it's done we can make another (point?) release.

What do you think @makasim ?

Better integration?

I managed to setup the extension, but it doesn't feel well-integrated.
It requires require-ing the autoload.php in index.php and using use in the config.

Isn't there any way to make this library load the same way every other Yii extension is loaded? (via the import section in the config)

Recurring payments

I saw that Express Checkout supports recurring payments, but I'm not too sure how it works. Is that IPN? Or it's based on something else? Does it trigger a callback on my page?

PAGESTYLE support

Hi @makasim ! I'm looking into the PAGESTYLE parameter that is passed for custom page styles. Is it supported?

composer install doesn't install Yii Extension itself

I just realised that following this guide: http://payum.org/doc/0.10/PayumYiiExtension/installation I should end up with this content in the vendor folder:

composer
kriswallsmith
payum
    \core
    \paypal-<whatever I wrote in the composer.json file>
    \payum-yii-extension

Anyways, that last folder (payum-yii-extension) doesn't get downloaded. I tried changing the version of yii-extension in the composer.json file to 0.9.*@dev, but the result is the same.

This is the output:

[alexandernst@stupidbox 0s PayumYiiExtension]$ composer update payum/payum-yii-extension payum/paypal-express-checkout-nvp payum/paypal-ipn 
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing kriswallsmith/buzz (v0.10)
    Loading from cache

  - Installing payum/core (0.9.2)
    Loading from cache

  - Installing payum/paypal-express-checkout-nvp (0.9.0)
    Loading from cache

  - Installing payum/paypal-ipn (0.9.0)
    Loading from cache

payum/core suggests installing payum/paypal-pro-checkout-nvp (If you want to use paypal pro checkout)
payum/core suggests installing payum/paypal-rest (If you want to use paypal rest gateway)
payum/core suggests installing payum/authorize-net-aim (If you want to use Authorize.Net AIM payment gateway)
payum/core suggests installing payum/be2bill (If you want to use be2bill payment gateway)
payum/core suggests installing payum/payex (If you want to use payex payment gateway)
payum/core suggests installing payum/omnipay-bridge (If you want to use omnipay's gateways)
payum/core suggests installing doctrine/orm (If you want to store models to database using doctrin2 ORM)
payum/core suggests installing doctrine/mongodb-odm (If you want to store models to mongo doctrin2 ODM)
payum/core suggests installing zendframework/zend-db (If you want to store models to Zend Db ORM)
payum/core suggests installing symfony/routing (If you want to use TokenFactory from symfony's bridge)
payum/core suggests installing symfony/http-kernel (If you want to use HttpRequestVerifier from symfony's bridge)
payum/core suggests installing symfony/http-foundation (If you want to use HttpRequestVerifier or ResponseInteractiveRequest from symfony's bridge)
payum/core suggests installing monolog/monolog (In case you want to use logger)
Writing lock file
Generating autoload files

Any ideas?

0.9.2 breaks

I just updated with composer and now I get this backtrace:

ReflectionException

Property PaymentDetails::$payum_id does not exist

/............/extensions/PayumYiiExtension/vendor/payum/core/Payum/Core/Storage/FilesystemStorage.php(95)

083 
084         if ($id = $rp->getValue($model)) {
085             unlink($this->storageDir.'/payum-model-'.$id);
086             unset($this->identityMap[$id]);
087         }
088     }
089 
090     /**
091      * {@inheritDoc}
092      */
093     protected function doGetIdentificator($model)
094     {
095         $rp = new \ReflectionProperty($model, $this->idProperty);
096         $rp->setAccessible(true);
097 
098         if (false == $id = $rp->getValue($model)) {
099             throw new LogicException('The model must be persisted before usage of this method');
100         }
101 
102         return new ModelIdentificator($id, $model);
103     }
104 }

I currently have core 0.9.2, yii-extension 0.9.2 and paypal express 0.9.0

Getting 400 error

Hi I am using this in my old yii framework yii 1.0
and getting 400 error
Client error response
[status code] 400
[reason phrase] Bad Request
[url] https://api-3t.sandbox.paypal.com/nvp

I am not able to understand why . I have searched in stackoverflow also but haven't found any answer.

C:\xampp\htdocs\yii\app\protected\vendors\payum\core\Payum\Core\Exception\Http\HttpException.php(74)

62         } elseif ($response->isServerError()) {
63             $label = 'Server error response';
64         } else {
65             $label = 'Unsuccessful response';
66         }
67 
68         $message = implode(PHP_EOL, array(
69             $label,
70             '[status code] '.$response->getStatusCode(),
71             '[reason phrase] '.$response->getReasonPhrase(),
72             '[url] '.$request->getUrl(),
73         ));
74         $e = new static($message, $response->getStatusCode());
75         $e->setResponse($response);
76         $e->setRequest($request);
77         
78 
79         return $e;
80     }
81 }

Yii 2 port

I'm wondering if this plugin will be ported to Yii 2 (or if it's already compatible with Yii 2)?

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.