PHP 5.5+ Payment processing library. It offers everything you need to work with payments. From simplest use cases to very advanced ones.
Hi, I already solve the above issue.
Now my problem is to get the post back values of the bank to my notify
example notify:
i want to get the refno in parameters $_GET
The profiler template "PayumBundle:Profiler:payum.html.twig" for data collector "payum" does not exist.
payum/core: 1.5.0
payum/payum-bundle: 2.3.0
As I understood from code the problem is that template is provided in PayumBundle:Profiler:payum.html.twig
format (in payum.profiler.payum_collector
service in debug.xml
file).
So I override this service like this
payum.profiler.payum_collector:
public: true
class: Payum\Bundle\PayumBundle\Profiler\PayumCollector
tags:
- { name: payum.extension, all: true, alias: profile_collector, prepend: true }
- { name: data_collector, id: payum, template: '@Payum/Profiler/payum.html.twig' }
profiler works now
If so, I'd suggest debug the token factory https://github.com/Payum/Payum/blob/master/src/Payum/Core/Bridge/PlainPhp/Security/TokenFactory.php
It could be customized using this method https://github.com/Payum/Payum/blob/master/src/Payum/Core/PayumBuilder.php#L235
Hello everyone. I'm tinkering with the payum integration in symfony and added a new factory and a capture action. When I trigger the payment, I get the Exception
Type error: Argument 1 passed to Payum\Core\Gateway::addAction() must implement interface Payum\Core\Action\ActionInterface, string given, called in /var/www/app/vendor/payum/core/Payum/Core/CoreGatewayFactory.php on line 219
The stack trace shows the following call Gateway->addAction('@app.payum_action.payone.capture_order', false)
This is how I registered the factory and the action. What am I doing wrong?
app.payum.payone.factory:
class: Payum\Core\Bridge\Symfony\Builder\GatewayFactoryBuilder
arguments: [Valiton\Payum\Payone\PayoneGatewayFactory]
tags:
- name: payum.gateway_factory_builder
factory: payone
# Overrides \Valiton\Payum\Payone\Action\CaptureAction
app.payum_action.payone.capture_order:
class: AppBundle\Action\Payone\CaptureOrderAction
arguments:
- '@coreshop.repository.order'
- '@coreshop.state_machine_applier'
tags:
- name: payum.action
factory: payone
hello guys, I'm studying Payum library to implement Adyen as a new gateway and we thinking to use the Payum solution to perform payments. I read the documentation and I feel that documentation are not deep/detailed enough to implement some behviours like create creditcard token or customer token in favor of recurring payments or subscription payment.
I saw the Stripe implementation and it has similar actions about it, but is not clear how it will work.
Do you have some sample about it?
@tonicospinelli there are two things that helped me in unserstanding payum (and similar libraries). The first one is an understanding of the command bus pattern. Here is a nice article explaining the mechanics https://www.sitepoint.com/command-buses-demystified-a-look-at-the-tactician-package/
The 2nd was to see some implementations in action such as https://github.com/coreshop/payum-heidelpay and https://github.com/valiton/payum-payone
Afaik neither has recurring payments and subscription implemented, however the heidelpay implementation shows an example how to implement an iframed solution for credit cards.
Once you grasp the command bus concept it will all be clear to you and you can concentrate on implementing the workflows of you payment methods
ContainerAwareInterface
trick. I don't remember, however how to do that anymore. I created a FormbuilderAwareInterface
and added a FormbuilderAwareTrait
. I got paayum to call the action's setFormbuilder method in some service tag (symfony container). Does anyone know what I am talking about?
hey everyone. when using payum in symfony, I am trying to override an action of my gateway like so (app/config.yml):
payum:
gateways:
payone:
factory: payone
key: 'payone_key'
merchant_id: 'payone_merchant_id'
portal_id: 'payone_portal_id'
sub_account_id: 'payone_sub_account_id'
sandbox: true
payum.action.convert_payment: '@payment.action.convert_payment'
payum.template.get_pseudo_card_pan: '@Payment/Action/get_pseudo_card_pan.html.twig'
payum.api: false
But when my gateaway is loaded, the configuration is overwritten by its defaults
how can I override the payum.action.convert_payment
or if that is not possible, how can I inject the Symfony DIC into a GatewayFactoryInterface?
payment.payum.payone.factory:
class: Payum\Core\Bridge\Symfony\Builder\GatewayFactoryBuilder
arguments: [PaymentBundle\PayoneGatewayFactory]
tags:
- name: payum.gateway_factory_builder
factory: payone
Hello all,
I am new to Payum and need to create a custom payment gateway with Payumlaravel. Anyone, please share the procedure to start.
Also, how I can test the integration with UI like sandbox/checkout page? Does any simulation medium/shop already exist for laravel to test Payum?
Thanks in advance.