Jump to content

Is it possible to test "Paypal login" from a VM?


SebasSBM

Recommended Posts

Prestashop v1.6.1.0

Paypal module v3.10.2

 

I am getting familiar with Prestashop's features through an installation I made on a LAMP Virtual Machine inside my laptop. My intention is to check that everything works well before installing it on a real server.

 

I have installed and configured PayPal's module following the steps in the Paypal Integration Guide to begin tests with a business account I created for the future real shop, and a paypal personal account.

 

What I've tried so far:

  • Chosen Websites Payment Standard
  • Obtained API credentials, and gave them into the backoffice configuration (API username, API password and API signature)
  • In "Configuration options":
    • "Use Express Payment" = YES
    • "Use PayPal In Context Checkout" = YES
    • "Use the PayPal Login functionality" = YES
    • "Sandbox Mode" = OFF
    • "Payment method" = Direct Sales
  • Created an app through developer.paypal.com
  • Introduced LIVE "CLIENT ID" and "SECRET"

Then, I tried to login as a client from the FrontEnd. It complains with a "redirect_uri invalid" error (of course, I haven't filled it yet). My doubts start here.

 

I'd like to check that payment methods work well before installing it on a real server. I don't think that giving my public IP address (the one that points to my home router) will be enough to redirect to my virtual machine (which have 2 Virtual Network adapters: NAT and Host-only).

 

This said, I will formulate my question: is it actually possible to test Paypal Login in Real mode from a VM like mine? Or else, is it possible to do it through "sandbox mode", or the only way is testing it on a real server?

 

In case the only choice for VM testing is the "Sandbox Mode":

  • I already know that Sandbox accounts can be created. So I guess, in this case, I would have to replace my Paypal Business account (Backoffice configuration, Step 2) with the Sandbox one, request API credentials again with the Sandbox Business Account, and use Sandbox's CLIENT_ID and SECRET. And maybe then fill the redirect_uri like: {sandbox_endpoint}/modules/paypal/paypal_login/paypal_login_token.php would work? Please correct me if my guessing is wrong...

Thanks in advance for reading :rolleyes:

Edited by SebasSBM (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...