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

Installing omnipay-bundle #283

Closed
TrueLoop opened this issue Aug 27, 2013 · 11 comments
Closed

Installing omnipay-bundle #283

TrueLoop opened this issue Aug 27, 2013 · 11 comments

Comments

@TrueLoop
Copy link

Hello, first of all, thanks for this awesome ecommerce solution.

I managed to install sylius in prod environment and followed the instruction of the manual concerning the sylius omnipay-bundle but when i try to access the payment modes from the backend dashboard and create a new one nothing have changed from before, in gateways i get the default "stripe" and "test" gateways as i did before but nothing more.

Im pretty new to symfony so maybe(probably) i've missed something.
Thanks in advance!

@molchanoviv
Copy link

Does it write anything to logs?

@TrueLoop
Copy link
Author

Nope prod.log
Is empty

@molchanoviv
Copy link

and what about apache error.log?

@TrueLoop
Copy link
Author

Ok in my site's appache error log i have nothing and nothing in the main appache error logs

Edit: In fack i looked too fast i had some errors :

[Tue Aug 27 19:41:29 2013] [error] [client xx.xx.xx.xx] PHP Deprecated: Using the UserManager as user provider is deprecated. Use FOS\UserBundle\Security\UserProvider instead. in /var/www/mysymfonysite.com/sylius/vendor/friendsofsymfony/u$

@molchanoviv
Copy link

Ok in my site's appache error log i have nothing and nothing in the main appache error logs

Ghm. Tomorrow i will try to reproduce your problem on my environment

[Tue Aug 27 19:41:29 2013] [error] [client xx.xx.xx.xx] PHP Deprecated: Using the UserManager as user provider is deprecated. Use FOS\UserBundle\Security\UserProvider instead. in /var/www/mysymfonysite.com/sylius/vendor/friendsofsymfony/u$

This issue have nothing to deal with problem above.

@cordoval
Copy link
Contributor

if you are using OmnipayBundle then this is a sample configuration out of the chapter 9 i wrote today on http://pilotci.com
it works for me on the latest sylius and it is what is running on the store selling the same lean book. It is for PaypalExpress but similar can be easily configured. I will write chapter 10 on advanced integration and share a piece too. Hope that helps:

sylius_omnipay:
    gateways:
#        AuthorizeNet_AIM:            # gateway name, use anyone
#            type: AuthorizeNet_AIM   # predefined list of types, read father for explanation
#            label: Authorize.Net AIM # how is gateway will be displayed in a form, etc.
#        AuthorizeNet_SIM:
#            type: AuthorizeNet_SIM
#            label: Authorize.Net SIM
#        Stripe:
#            type: Stripe
#            label: Stripe
#            mode: true                # optional, default: false, activate test mode
#            active: false             # optional, default: true, does this gateway is active
#            options:                  # optional, predefine list of options to get work with gateway
#                apikey: secretapikey
        PayPal_Express:
            type: PayPal_Express
            label: PayPal Express
            mode: false
            active: true
            options:
                username: %paypal_username%
                password: %paypal_password%
                signature: %paypal_signature%
                testMode: %paypal_test_mode%
                #landingPage: billing
                headerImageUrl: %paypal_header_image_url% 
#        PayPal_Pro:
#            type: PayPal_Pro
#            label: PayPal Pro

@cordoval
Copy link
Contributor

also the user deprecated error is easily fixable just by changing it in the security.yml

@coldlamper
Copy link

I have the same problem no mater what i try i only see Stripe or Test as options. Tried cordoval's options.

@makasim
Copy link
Contributor

makasim commented Oct 25, 2013

things changed lately (after #275 has been merged). Sylius now come with three payments as examples:

  • Paypal express checkout. An example of payment with a redirection to payment official site.
  • Stripe (via Omnipay). An example of payment with credit card.
  • Dummy. Used for testing. It just mark payment success.

To make them work you just have to set correct values to parameters.yml.

@makasim
Copy link
Contributor

makasim commented Oct 25, 2013

And there is a RFC about dropping omnipay-bundle

@stloyd
Copy link
Contributor

stloyd commented Dec 5, 2013

Closing this as there is an easier way to create payments with Payum, which are configured to work already in core.

@stloyd stloyd closed this as completed Dec 5, 2013
pamil pushed a commit to pamil/Sylius that referenced this issue Mar 21, 2016
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

No branches or pull requests

6 participants