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

Cannot find created before payment method (paypal) #388

Open
gvanto opened this issue Sep 1, 2021 · 12 comments
Open

Cannot find created before payment method (paypal) #388

gvanto opened this issue Sep 1, 2021 · 12 comments
Assignees
Labels

Comments

@gvanto
Copy link

gvanto commented Sep 1, 2021

I want to purchase Paypal plugin and looking at docs: https://octobercms.com/plugin/lovata-paypalshopaholic > Documentation

I can't seem to see where the 'created before payment method' is referred to here?:
image

Is there an example of setting up a Paypal payment in the docs somewhere?
(no Paypal docs here: https://shopaholic.one/docs#/plugins/home)

Also, is there a way to create a Paypal subscription (instead of just a once-off order) ?

Any help much appreciated,
gvanto

@gvanto
Copy link
Author

gvanto commented Sep 5, 2021

This is the payment method created - where do I put the (paypal) token?

image

@gvanto
Copy link
Author

gvanto commented Sep 21, 2021

Anyone?

@kharanenka
Copy link
Contributor

Hi! Did you install paypal composer packages via composer?

@gvanto
Copy link
Author

gvanto commented Sep 21, 2021

Hello! Yes I did

@kharanenka
Copy link
Contributor

Did you install v2 or v3 of omnipay packages?

@gvanto
Copy link
Author

gvanto commented Sep 21, 2021

Looks like v3: from my composer.lock file:
image

@kharanenka
Copy link
Contributor

Try to add this code in your custom plugin

public function boot()
{
    $factory = Omnipay::getFactory();
    $factory->register('PayPal');
}

@gvanto
Copy link
Author

gvanto commented Sep 21, 2021

Ok before doing this - is it possible to use Paypal Subscribe at all with checkout? I need a paypal subscribe to process payment for the product (not just a Paypal pay).

@kharanenka
Copy link
Contributor

Unfortunately, I didn't have some case with using PayPal subscription. I think it is possible, but you should to do some minor improvments in your custom plugin.

@gvanto
Copy link
Author

gvanto commented Sep 21, 2021

Surprised there's no case for it, since there's also a lovata shopaholic subscriptions plugin (which I also have), wouldn't Paypal subscriptions make sense to go with it?

@kharanenka
Copy link
Contributor

You are right that plugins should work together out of the box. The plugins have been developed in different time. We will try to improve our products so that all plugins know how to work with each other.

@mennax
Copy link

mennax commented Mar 11, 2022

Hi @kharanenka

Try to add this code in your custom plugin

public function boot()
{
    $factory = Omnipay::getFactory();
    $factory->register('PayPal');
}

this return an error when I choose PayPal from Gateway > Payment gateway:
Class '\Omnipay\PayPal\Gateway' not found" on line 85 of /Users/mennax/Sites/vicinus2/vendor/omnipay/common/src/Common/GatewayFactory.php

but if I add this

public function boot()
{
    $factory = Omnipay::getFactory();
    $factory->register('PayPal');
    $factory->register('PayPal_Express');
}

And I choose PayPal_Express, then the 'Gateway' tab is now populated with a a lot of input fields.

Using version ^3.4 for ignited/laravel-omnipay
Using version ^3.0 for omnipay/paypal

It seems to work!

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

No branches or pull requests

4 participants