Payum - Payment Extension

PayumYiiExtension (Github) provide integration of payum library into Yii Framework.

Usage of the extension gives you several advantages:

  • Support lots of payment gateways natively and omnipay’s ones via bridge.

  • Secured capture action.

  • Ability to easy setup IPN. Notify action is also secured.

  • Paypal extended support: recurring payment and digital goods, IPN.

  • Storages integrated into payment process so you do not have to worry about data that might be lost. Doctrine ORM\MongoODM supported out of the box.

  • Domain friendly. Indeed Payum provide some models but it does not restrict you to use them.

  • It already supports PSR-0 logger. It can logs executed payum actions, to easy debug.

  • It is possible setup several payments (one paypal account for EU and one for US for example)

  • Extremely customizable. Add your custom payum actions, extensions or storages.

Hope you find the lib useful.

Very interesting, I’ll be playing with this tomorrow for when I develop my membership site!

Will you provide support for Paymill? I’d like to integrate my website with PayPal and Paymill. Right now it seems that it would be better to manually integrate these 2 payment gateways, since it seems that Payum shines in bundling various payment processors together.

Will there also be support for recurring payments/subscriptions (specifically for Paymill and PayPal)?

Paymill is not supported neither by payum nor omnipay. You can implemented this extension for payum or motivate me.

About recurring payments: paypal recurring payments already supported there is a doc on how you can set up in pure php. I think that would be easy adpoted to yii.

Alright thanks I’ll look into it some more.

I suggest you post a link to the extension in the OP :)

OP? what does it mean?

Original Post. The post with which you started the topic. In another context OP means Original Poster, which would be you.

Hey, thanks for all the work towards the extension!

I’m having a bit of trouble progressing - I’ve followed all the up-to-date tutorial (https://github.com/Payum/PayumYiiExtension) everything is installed, configured according to the tut, but I’m getting the following error when trying to load the ‘Prepare’ function in PaypalController:

PHP Fatal error: Class ‘PaymentDetails’ not found in /protected/vendors/payum/payum/src/Payum/Storage/AbstractStorage.php on line 27

My models are set up exactly to the tutorial https://github.com/Payum/PayumYiiExtension/blob/master/docs/get-it-started.md

Any suggestions? I’m running Yii 1.1.14. Thanks

try to set $detailsClass = ‘Application\Model\PaymentDetails’; or remove namespace define inside PaymentDetails class.

I’m afraid changing the $detailsClass value in both config/main.php and PaypalController.php is giving me the same error. If I remove the namespace declaration from models/PaymentDetails.php it gives me the following exception:

ReflectionException

Property PaymentDetails::$payum_id does not exist

Appreciate the help!

Let’s start from this error “Property PaymentDetails::$payum_id does not exist”. Add a protected property $id to your model and third parameter ‘id’ to FilesystemStorage constructor.

How do you install payum. I would advice you to use composer

I followed the tutorial exactly as listed above.

I’ll attempt those changes and get back to you, thanks.

Do you have any examples on how the models/views should be set up? I’m probably looking too much into it and it’ll be something simple

This is the only doc I have for now http://payum.org/doc/0.9/PayumYiiExtension/get-it-started

It is based on a yii sandbox application where I played with payum extension. https://github.com/makasim/PayumYiiSandbox. The sandbox example worked for me last time I tried it (about 4 months ago).

P.S. I am not familiar with yii framework and dont use it on day basis. So if you find something miss used please tell me.

Will do, thank you

Just want to inform you: I fixed the doc and sandbox and preparing to release 0.7 version.

PayumYiiExtension 0.9.0 has been released. Lots of fixed and new features. Check it out. The doc http://payum.org/doc#PayumYiiExtension and code https://github.com/Payum/PayumYiiExtension

does this work on yii2, if not then by what date?

till somebody adds it. I do not work with yii framework so it is not a high priority for me.