robvankeilegom / firefly-III-paypal-importer

PayPal Data Importer for Firefly III
49 stars 3 forks source link

Importer appears to not work with Personal accounts #16

Open JackPala opened 11 months ago

JackPala commented 11 months ago

Currently configuring with Paypal. Appears to not function with Sandbox keys as the URL is sandbox.paypal.com

Live keys require a business account and will not work with a regular Personal account afaik.

Is there another way to generate the required keys on a personal account? or get transactions via sandbox?

robvankeilegom commented 11 months ago

Hey!

The PayPal sandbox doesn't have any actual data. Its a virtual environment that simulates the production environment. If you want to try the importer with the sandbox you can overwrite the uri with the PAYPAL_URI env variable. It defaults to https://api-m.paypal.com/v1/.

For the business account, try to read #10 . I'm not completely sure how the PayPal account status works, but if you figure it out, lmk!

poudenes commented 10 months ago

@JackPala Did you get this work with Sandbox mode? I was try to upgrade my personal account to Business. But canceled it. I don't know what will happen when I change it for personal use...

MeikelLP commented 10 months ago

You can do it when u go to this url: https://developer.paypal.com/dashboard/applications/live

I don't know if it will work in the future but it does right now. You can avoid the limitation and create a live application.

JackPala commented 10 months ago

You can do it when u go to this url: https://developer.paypal.com/dashboard/applications/live

I don't know if it will work in the future but it does right now. You can avoid the limitation and create a live application.

That did not work for me, it did a hop to /sandbox from /live

JackPala commented 10 months ago

@JackPala Did you get this work with Sandbox mode? I was try to upgrade my personal account to Business. But canceled it. I don't know what will happen when I change it for personal use...

No, sandbox mode does not appear to have live data

MeikelLP commented 10 months ago

You can do it when u go to this url: https://developer.paypal.com/dashboard/applications/live I don't know if it will work in the future but it does right now. You can avoid the limitation and create a live application.

That did not work for me, it did a hop to /sandbox from /live

Well sorry. It worked for me - I don't know why or how.

Se7enair commented 10 months ago

I use the Paypal API with another banking app (Banking4). It is recieving all transactions. I dont have a Business account. The developer-portal also shows sandbox mode. But with these credentials I cannot recieve transactions.

In RequestException.php line 113:

  Client error: `POST https://api-m.paypal.com/v1/oauth2/token` resulted in a  
   `401 Unauthorized` response:                                                
  {"error":"invalid_client","error_description":"Client Authentication failed  
  "}   

Is there anything I can help with?

robvankeilegom commented 9 months ago

@Se7enair Are you using the same credentials in the importer as in the Banking4 app?

Se7enair commented 9 months ago

@Se7enair Are you using the same credentials in the importer as in the Banking4 app?

Yes I did.

robvankeilegom commented 9 months ago

I went through the documentation and it seems like there's no way anymore for a personal account to generate api credentials. I myself have no way to make new credentials anymore, though the ones i have still work.

edit: removed a sentence since it was incorrect

Se7enair commented 9 months ago

So my old credentials should work?

New users can create a separate account for sending Money to Friends to Save Money. If this does not happen to often, this could be a way. The normal Account can then be upgraded to business.

MeikelLP commented 9 months ago

You can also revert it via the support hotline. It's quite instant you just have to make a call. They don't even ask why u wanna do it

robvankeilegom commented 8 months ago

So i changed my account to a business account after contacting support. I had working api keys that i couldn't manage in the developer dashboard since the 'live' toggle stopped working.

As far as i can tell there's no difference. I haven't notice any difference yet...

Except ofcourse that i can manage my api keys again.

@Se7enair I'd say, maybe switch to a business account so you can create a new pair of credentials and try again with them?

poudenes commented 8 months ago

So i changed my account to a business account after contacting support. I had working api keys that i couldn't manage in the developer dashboard since the 'live' toggle stopped working.

As far as i can tell there's no difference. I haven't notice any difference yet...

Except ofcourse that i can manage my api keys again.

@Se7enair I'd say, maybe switch to a business account so you can create a new pair of credentials and try again with them?

I saw then you have a business account and you want to pay something that will cost something. With a personal account it's free. And allow Paypal to change to a business account even its not a business?

Hedius commented 8 months ago

If i remember correctly sending money to business accounts as a friend/family transaction without fees is not possible.

That should be the only difference