PayumBundle | Payum offers everything you need to work with payments | Ecommerce library
kandi X-RAY | PayumBundle Summary
kandi X-RAY | PayumBundle Summary
Payum is an MIT-licensed open source project with its ongoing development made possible entirely by the support of community and our customers. If you'd like to join them, please consider:.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Load dynamic gateways .
- Adds the storages configuration .
- Processes tag data
- Collect context data .
- Execute capture action .
- Do a session token action .
- Finds all gateways containing the given name .
- Configure options .
- Configure list fields
- Convert a kernel exception to a Symfony response .
PayumBundle Key Features
PayumBundle Examples and Code Snippets
Community Discussions
Trending Discussions on PayumBundle
QUESTION
I am testing Bitbag/PayUPlugin and I was stopped by gateway API with error "Required data missing".
After some debugging, I realised that Sylius Payment entity, specifically "details" property, is not fulfilled with data.
After change condition on line 53:
to
if ($status->isNew() || $status->isUnknown()) {
payment gateway seems to work correctly.
Is it a bug or am I doing something wrong ?
Sylius/Sylius v1.4.6 Bitbag/PayUPlugin v1.8.0
...ANSWER
Answered 2019-Jul-04 at 06:59Unlikely there is an error in PayumBundle/CapturePaymentAction (because more people used PayumBundle than PayUPlugin, so probability of bug is less), conceptually payment object status at the beginning should be "new" instead of "unknown", so the condition should work.
So you should find out https://github.com/BitBagCommerce/SyliusPayUPlugin/blob/master/src/Action/StatusAction.php#L58 class, why it doesn't reach markNew()
line.
QUESTION
I'm using Symfony with PayumBundle and payum-redsys in order to accept payment through the spanish Redsys gateway.
After every payment attempt (be it successful or not), Redsys sends a notification to a url. I want to catch this notification and take actions according to its payload (was the payment successful? which order number? etc.). For instance, let's say that if the payment was successful I want to mark the corresponding order as paid in the database, otherwise I want to log the error. Something like:
...ANSWER
Answered 2017-Sep-04 at 15:48Payum seems to support listening to events on the gateway as can be seen in PayumEvents. The Event being passed around basically only contains a Context from which you need to gather the information you need. You probably want to look at the actions inside this context, especially the CapturePaymentAction and the Request? How this all ties together is not clear to me as I'm basically deciphering this from the source code.
If you don't want to figure out all the event stuff you could just create a listener that listens to the appropriate event and then use xdebug or var_dump to read out the data from the event and continue from there. Basically the event listener should make sure that you are in the right action, get the Ds_Order
and Ds_Date
(probably from the request) and then you can add in a snippet like the one you posted above.
If you are not familiar with Symfony's Event System I recommend reading up on the documentation:
- https://symfony.com/doc/current/components/event_dispatcher.html
- https://symfony.com/doc/current/event_dispatcher.html
edit: Also Payum provides some documentation how it deals with events as well: https://github.com/Payum/Payum/blob/master/docs/event-dispatcher.md
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install PayumBundle
PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page