Payum - Payment Extension

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.

Hello, thanks for this great extension…

Do you have a simple example of using the extension just for direct payment via Paypal? I am looking for an example where you pay via Paypal and then once paid, database is updated.

Not sure what you mean by "direct payment", Is it paypal pro? If so there is a basic usage doc http://payum.org/doc/0.11/PaypalProCheckoutNvp/get-it-started.

For the database you have create a storage class and add a storage extension (with the storage) to the payment. It will keep model update for.

No its PayPal Payment Standard.

It is not supported, here the list of currently supported payments http://payum.org/doc/0.11/Core/supported-payments

Thanks!!!

Actually i don’t want to use the paypal pro because it is having some monthly fees right? i am looking for some free solutions, can i use paypal express checkout? do i have to register for a membership on paypal?

I dont know about all that stuff anything, I am interested in the technical part only