Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Max Kotliar
    @makasim

    @cydrickn Hi

    You have to adjust the PayumServer source code. Add this code here

    <?php
    $app['payum.builder'] = $app->share($app->extend('payum.builder', function (PayumBuilder $builder) {
        $builder->addGatewayFactory('my_factory', function(array $defaultConfig, CoreGatewayFactory $coreGatewayFactory) {
             return new MyGatewayFactory($defaultConfig, $coreGatewayFactory);
         });
    
         return $builder;
    });
    Max Kotliar
    @makasim

    @solverat Hi

    I am glad to see you solved the issue. Few comments

    • The capture and notify tokens should be two different ones. User should use capture and never notify. Notify token is used by a payment provider to send notification to your app.
    • A capture token is expected to be removed shortly after a payment is done (captured or failed) where notify one can stay there for a long time.
    • You can add some logic by extending the token model and token factory. The logic allows you to remove abandoned tokens after some time.
    Hadi Zakzouk
    @Almusamim
    Hello I'm trying to implement klarna checkout with Sylius but I'm getting this error on the payment page
    INFO 20:50:47     request     Matched route "payum_capture_do"
    
    INFO 20:50:47     security     Populated the TokenStorage with an anonymous Token.
    
    CRITICAL 20:50:49     request     Uncaught PHP Exception Payum\Core\Exception\RequestNotSupportedException: "Request Capture{model: ArrayObject} is not supported. Make sure the gateway supports the requests and there is an action which supports this request (The method returns true). There may be a bug, so look for a related issue on the issue tracker." at C:\Users\Hadi\www-dev\sylius\vendor\payum\payum\src\Payum\Core\Exception\RequestNotSupportedException.php line 57
     http://sylius.test/payment/capture/CfIgjTGQyzAGp16whSvP2mEfFJ1pZ8rEAYNUImzDkPE
    
    302 Redirect from  @sylius_shop_order_pay (bc0fd8) 
    
    Gateway execution graph
    
    Capture[ArrayObject]
    └ CapturePaymentAction::execute(Capture[ArrayObject])
     └ ExecuteSameRequestWithPaymentDetailsAction::execute(GetStatus[ArrayObject])
      └ StatusAction::execute(GetStatus[ArrayObject])
     └ ConvertPaymentAction::execute(Convert[])
    Capture[ArrayObject]
    └ CapturePaymentAction::execute(Capture[ArrayObject])
     └ ExecuteSameRequestWithPaymentDetailsAction::execute(GetStatus[ArrayObject])
      └ StatusAction::execute(GetStatus[ArrayObject])
     └ ConvertPaymentAction::execute(Convert[])
       ⬅ exception RequestNotSupportedException
    Any idea what I missed with the implementation?
    Max Kotliar
    @makasim
    Klarna Checkout does not support (or it is not simply implemented) capture.
    Cydrick Nonog
    @cydrickn
    hi,
    i created my custom gateway
    but how i can check if it was configure as sandbox in captureaction
    when im trying to dum the $this->gateway it always output null
    im creating a gateway that will redirect to the payment gateway page
    Cydrick Nonog
    @cydrickn

    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:

    http://myurl.com/payment/notify/nc7YNi4gxEk5JCkBkOcD5w03DrJ7f-vSkfFv7RPn1hA?refno=samplerefno&procid=BOG&status=S&message=sample&digest=83f828e5ab0ad6b74532d698283c797926cc55a6

    i want to get the refno in parameters $_GET

    Cydrick Nonog
    @cydrickn
    already got it, using gateway->execute($req = new GetHttpRequest());
    Max Kotliar
    @makasim

    when im trying to dum the $this->gateway it always output null

    @cydrickn Have you implemented GatewayAwareInterface?

    Cydrick Nonog
    @cydrickn
    Thank you.
    Den Girnyk
    @Great-Antique
    Hi, please advise where to find info how to use Payum with Symfony 4.
    Now almost everything works fine, but profiler crashes
    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
    Den Girnyk
    @Great-Antique

    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

    Stefan Hagspiel
    @solverat
    @makasim what's your recommendation to integrate a existing payum gateway like klarna into a ecommerce framework (sylius for example) - specifically the initial settings part: in sylius you can't just create a controller and add all the billing information (like explained here) so you need to do it differently. i thought about adding a PopulateKlarnaFromDetailsAction extension which will add a preExecute method and populate the request model with the required data. the questions is: is that right? to add some advice to the docs about this topic would be nice :D
    Cydrick Nonog
    @cydrickn
    Hi,
    Im creating booking system that is microservice and also im using payum micro service.
    How I can link the booking to payments.
    What is a good methods.
    Im planning that the booking item will have the id of payments since or the payment will have the booking id
    Michael Stepanov
    @stepanov
    Hi, I'm trying to integrate Payum to our system and have probably silly question. How to generate correct redirect URL? In my case the action/script with payum token always added after initial script name - targetUrl: http://localhost:8001/prepare.php/capture.php?payum_token=64-TNVVqqSytZ1MVGbilb8ZOW8Rx27LJcmdwqr5n9oc. How to make it http://localhost:8001/capture.php?payum_token=64-TNVVqqSytZ1MVGbilb8ZOW8Rx27LJcmdwqr5n9oc ?
    Max Kotliar
    @makasim

    @stepanov Hi

    Is it a custom application, I mean not a Symfony or other framework based ?

    Michael Stepanov
    @stepanov
    @makasim thank you for your answer. It's based on CakePHP which is not supported by Payum. Will try your suggestion to pass baseUrl into TokenFactory.
    Michael Stepanov
    @stepanov
    @makasim can you please give an example of processing the payment page answer, i.e. PayPal Express Checkout success/cancel redirect processing?
    mkauferstein
    @mkauferstein
    hi there, can someone tell me how i persist details in an action?
    Manoj Kumar
    @napestershine
    Hello anyone here
    Khairi Husseini
    @khusseini

    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
    Khairi Husseini
    @khusseini
    Ah oki, the symfony service entry needs to be public because the ContainerAwareCoreGatewayFactory uses the symfony container directly to add the action
    Antonio Spinelli
    @tonicospinelli

    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?

    Khairi Husseini
    @khusseini

    @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

    Antonio Spinelli
    @tonicospinelli
    @khusseini thanks for reply me! Last months I'm studying about command bus and I did identify this concept on payum-library.
    so, after studying the library and other gateways I'm close to finish implementation Adyen gateway with recurring payment.
    Khairi Husseini
    @khusseini
    @tonicospinelli great
    Khairi Husseini
    @khusseini
    Hello everyone. A while ago I wrote a piece of code, with which I could populate actions on the fly similar to the 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?
    Khairi Husseini
    @khusseini
    helo everyone. how do I override the payum.layout_template setting for symfony?
    Stefan Hagspiel
    @solverat
    @makasim hey, is there any way to get the storageInterface within a action? captureAction.php for example? i need to update the model in a very early state since my paymentgateway triggers return and notify nearly at the same time...
    ahmed-bokdoc
    @ahmed-bokdoc
    I there is any example with payum and restful Api
    Did Youn
    @DnD-Crow
    Hello
    I've a question about the implementation of a gateway with PayumBundle
    I'm trying to configure the extension "paypal_rest" but after I've generate the capture token, the target URL is something like "http://127.0.0.1:8001/payment/capture/ptUg9dDr6gr8njJwmC1ATh2cal1d12ci_pZJ7uTOV9I"
    The URL should not be a direct link to paypal ?
    Richard Wins
    @RichTech

    Hello everyone

    is there any documentation for paypal subscription integration with payum bundle? Unfortunately I can't find it and am not able to integrate it on my own.

    Thanks very much and have a great day :)

    Khairi Husseini
    @khusseini

    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?

    the factory is created like so:
      payment.payum.payone.factory:
        class: Payum\Core\Bridge\Symfony\Builder\GatewayFactoryBuilder
        arguments: [PaymentBundle\PayoneGatewayFactory]
        tags:
        - name: payum.gateway_factory_builder
          factory: payone
    Freddy Rommel
    @rommelfreddy
    have anyone tried to use payum in magento 2.
    i do not want to integrate it, but i want to know if it would be possible...
    Are there any further extensions ?
    Max Kotliar
    @makasim
    It should be possible
    Steven Parker
    @ConnectSteven_twitter
    Quick PayU Integration using Golang, Must Check the Code Here - https://github.com/Mindinventory/Golang-PayU. Is there any Improvement?
    Michael Stepanov
    @stepanov
    @Fredwak IMHO Payum is the best option to build standalone payment gateway worked like a microservice. If you need integration solution even for magneto I guess it'd be better to use Omnipay.