Skip to content
This repository has been archived by the owner on Oct 5, 2023. It is now read-only.

You must enable SSL check in production mode #19

Open
vineetdikonia opened this issue Jan 8, 2019 · 2 comments
Open

You must enable SSL check in production mode #19

vineetdikonia opened this issue Jan 8, 2019 · 2 comments

Comments

@vineetdikonia
Copy link

Earlier I was working on the sendbox mode and everything worked fine for me. Now I just moved on the live and updated the CLIENT_KEY and SECRET_KEY but getting "You must enable SSL check in production mode" issue. I already configured SSL on my site and site working perfectly with https.

Can anyone suggest the solution?

@nuxtor
Copy link

nuxtor commented Jun 4, 2019

Is anyone found reason for this error ?

@SalehMahmood
Copy link

Yeah, make sure that you use the Test service key and the key must start with T when you create a Worldpay instance .e.g
$worldpay = new Worldpay('T_S_xxxxxxxxxxxxxxxxx').

I found a check in ~/lib/Connection.php in line no 106 if (substr($this->service_key, 0, 1) != 'T'). If the service key doesn't start with T, it's gonna think that you're in production mode.

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

No branches or pull requests

3 participants