Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PayumBundle] Make offline payum capture action to be public #2888

Merged
merged 1 commit into from Jun 18, 2015
Merged

[PayumBundle] Make offline payum capture action to be public #2888

merged 1 commit into from Jun 18, 2015

Conversation

aramalipoor
Copy link
Contributor

No description provided.

@makasim
Copy link
Contributor

makasim commented Jun 17, 2015

What is the reason to have it public? FYI: The payum's action is not designed to be used outside of Gateway.

@aramalipoor
Copy link
Contributor Author

@makasim Maybe I'm missing something, this is my config.yml:

payum:
    storages:
        Sylius\Component\Core\Model\Order: { doctrine: orm }
        Sylius\Component\Core\Model\Payment: { doctrine: orm }

    security:
        token_storage:
            Sylius\Bundle\PayumBundle\Model\PaymentSecurityToken: { doctrine: orm }

    dynamic_payments:
        config_storage:
            Sylius\Bundle\PayumBundle\Model\PaymentConfig: { doctrine: orm }

    payments:
        offline:
            offline:
                actions:
                    - sylius.payum.offline.action.capture_payment

I'm using sylius core in my project and with this configuration I get a "service not found" error for this action.

What do you think I'm missing?!

@makasim
Copy link
Contributor

makasim commented Jun 17, 2015

Yes, you are right. The gateways are created in runtime so the actions has to be public.

@pjedrzejewski good to merge

pjedrzejewski pushed a commit that referenced this pull request Jun 18, 2015
[PayumBundle] Make offline payum capture action to be public
@pjedrzejewski pjedrzejewski merged commit 7a9479a into Sylius:master Jun 18, 2015
@pjedrzejewski
Copy link
Member

Thank you Aram and Maksim! 👍

@aramalipoor aramalipoor deleted the fix/offline-payment-service branch June 18, 2015 19:35
@aramalipoor
Copy link
Contributor Author

👍 Thank you Makasim and Paweł ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants