Closed makasim closed 10 years ago
This is great! :+1: Anyways, I can test it as soon as Monday morning, can't clone company's project in my home computer :(
@alexandernst that's ok!
Hi! I tested your patch and some small changes are required to make it work.
In PayumComponent.php
, right after the namespace
, theres should be a line with this:
\Yii::import('Payum\YiiExtension\TokenFactory', true);
This is because of how Yii loads the extension. Without this line, Yii complains about not knowing what TokenFactory
is. I'm not aware of any other solution :disappointed:
One more thing. In PayumController
, the line (in the docs)
$tokenStorage = $payum->getTokenStorage();
is not needed anymore
@alexandernst you can open PR over my PR (:, could you do it?
if not I do that,
thanks for the review.
Sure, give me a moment :wink:
Where do I push? Here? Or in formapro-forks?
you have to use formapro-forks branch as a base one.
you have to create a new branch from this formapro-forks:token-factory
one and after you done open a PR agains it.
Ok, will be ready in a few minutes
closing in favor https://github.com/Payum/PayumYiiExtension/pull/19
Simplify token creation by using a factory, instead of doing:
we just do:
@alexandernst Could you please test it since you have working app?