Closed cklm closed 8 years ago
Have a look at this commit: https://github.com/Payum/Payum/commit/716821215c8154920355fa53b9bfe16d2df9fda7 It should fix at least your last problem and maybe also the first one.
@cklm could you confirm you use the latest available version of payum/payum and payum/payum-bundle. the master branch.
Thanks for the hint - using payum/payum dev-master fixes both problems.
closing then. Feel free to reopen if there is something left.
Hi,
I'm using Payum-Bundle dev-master with Symfony 3.0.1.
I stick to the documentation and created an controller for an offline-capture:
When I want to test that, the following error occures:
Unable to generate a URL for the named route "/projects/payum-test/web/app_dev.php/finished-payment?payum_token=a0xg5VoNHazlHh1eee3clZD9vV5HCvOTuX2TRs-Jqa4" as such route does not exist.
Thats correct - the name of the route is "payment_done". So it seems, that createCaptureToken() already generates the url, which leads to the error, when the router tries to generate the same route/the url again.The error seems to be in AbstractTokenFactory, Line 39:
if (0 === strpos($targetPath, 'http')) {
as the generated path doesn't start with http, this if is false and triggers the url-generation in Line 49.Replacing the
payment_done
with a self generated url in createCaptureToken works for me:Next error - using PaypalExpress the following error is thrown:
The given URL: "///projects/payum-test/web/app_dev.php/payment/capture/K2Dp0GW-NeypqWkcL-4p0uwx1TC6zblXYZkejVZguLk" could not be parse
in vendor\league\url\src\AbstractUrl.php at line 26. There seems to be a bigger problem with urls...