Closed Yizack closed 4 months ago
Sorry for the late review @Yizack
I am getting this error even though I followed your steps.
Thanks for helping btw <3
Will merge and feel free to continue on this conversation or add another PR to fix later on.
Hey! @Atinux
I am getting this error even though I followed your steps.
This error happens to me only when using the default business sandbox account to login. I am not sure why but try creating another personal or business sandbox account here https://developer.paypal.com/dashboard/accounts
Also for testing I realized is better to use http://127.0.0.1:3000/auth/paypal
as redirect URL than your --host ip
For testing if needed, follow these steps:
http://localhost:3000/auth/paypal
so I manually added the--host
flag on thedev
script to add my network IP address as a Return URLI also added the
sandbox
config which allows using the sandbox or production environment from Paypal, usedimport.meta.dev
as the default value to automatically set it true in dev and false in production when not definedhttps://github.com/Atinux/nuxt-auth-utils/blob/1ad2a93e4a06d127f9aa22a436f393883a4ea927/src/runtime/server/lib/oauth/paypal.ts#L63-L68