yproximite / payum-axepta-bnp Goto Github PK
View Code? Open in Web Editor NEWAxepta gateway for Payum
License: MIT License
Axepta gateway for Payum
License: MIT License
Hello!
I'm trying to use Axepta with your bundle. The payment is working, but there is an error on the callback:
// https://127.0.0.1:8000/admin/payment/callback?payum_token=J3ijH1J8RdhWAtPU4AWwxA-vUNAQIQggYGvwR132wk8?Len=655&Data=...
A token with hash `J3ijH1J8RdhWAtPU4AWwxA-vUNAQIQggYGvwR132wk8?Len=655` could not be found.
Has you can see, there is a ?Len=655&Data=
after the callback url generated by Payum...
My prepare route is :
/**
* @Route("/prepare", name="prepare", methods={"GET"})
*/
public function prepare(Payum $payum)
{
$gatewayName = 'axepta';
$storage = $payum->getStorage('App\Entity\Payment');
$payment = $storage->create();
$payment->setNumber(uniqid());
$payment->setCurrencyCode('EUR');
$payment->setTotalAmount(123); // 1.23 EUR
$payment->setDescription('Test');
$payment->setClientId('1');
$payment->setClientEmail('[email protected]');
$storage->update($payment);
$captureToken = $payum->getTokenFactory()->createCaptureToken(
$gatewayName,
$payment,
$this->generateUrl("admin_payment_callback", [], UrlGeneratorInterface::ABSOLUTE_URL) // the route to redirect after capture
);
return $this->redirect($captureToken->getTargetUrl());
}
The callback route is simply :
/**
* @Route("/callback", name="callback", methods={"GET"})
*/
public function callback(Request $request, Payum $payum)
{
$token = $payum->getHttpRequestVerifier()->verify($request);
}
Do you have any idea on how it could be fixed?
Hi,
Hope your are doing well.
I'm trying to install your package but I have got this below error message:
[InvalidArgumentException] Could not find a matching version of package yproximite/payum-axepta-bnp. Check the package spelling, your version constraint and that the package is available in a stability which matches your minimum-stab ility (stable).
I'm using:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.