Advertisement:

Author Topic: Payment pro Config.php  (Read 2102 times)

adv2sell

  • Jr. Member
  • **
  • Posts: 84
Payment pro Config.php
« on: May 15, 2015, 01:23:30 pm »
Hi,

I would appreciate it if an expert can assist me how to create a config.php for payment pro..
I do not have a config.php in public_html/oc-content/plugins/payment_pro/config.php

thanks...

adv2sell

  • Jr. Member
  • **
  • Posts: 84
Re: Payment pro Config.php
« Reply #1 on: May 15, 2015, 02:11:49 pm »
is it ok to change the said PAYMENT_PRO_CRYPT_KEY in index.php
or must I create the config.php

Please advise osclass team.

Thanks

ashish1241

  • Jr. Member
  • **
  • Posts: 59
Re: Payment pro Config.php
« Reply #2 on: May 20, 2015, 10:07:23 pm »
from cpanel - File manager browse to > public_html/oc-content/plugins/payment_pro..
click on create file and name it config.php
and copy the code mentioned on the download page into the file.
then change the PAYMENT_PRO_CRYPT_KEY and save it

adv2sell

  • Jr. Member
  • **
  • Posts: 84
Re: Payment pro Config.php
« Reply #3 on: May 21, 2015, 12:55:12 pm »
Thank you

Freespirit

  • Newbie
  • *
  • Posts: 14
Re: Payment pro Config.php Don't Work :-(
« Reply #4 on: March 03, 2018, 05:05:47 pm »
Hi,

I created the config.php in suggested folder and saved it...

But I get this error after saving...

Warning: Cannot modify header information - headers already sent by (output started at //payment_pro/config.php:1) in oc-includes/osclass/utils.php on line 1743

Solved
« Last Edit: March 03, 2018, 05:19:42 pm by Freespirit »

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: Payment pro Config.php
« Reply #5 on: March 03, 2018, 06:02:10 pm »
Hi,

Check that your config.php starts with <?php (no spaces or other characters before that).

Regards

NDboots

  • Newbie
  • *
  • Posts: 4
Re: Payment pro Config.php
« Reply #6 on: June 09, 2018, 07:41:20 pm »
I just had this same problem with Payment Pro downloaded in June 2018.

I had this same problem with new install of Payment Pro when trying to activate PayPal Payments.  I got a error code saying this:

Please, change the crypt key (PAYMENT_PRO_CRYPT_KEY) in /home/myserverplace/public_html/mydomainplace/oc-content/plugins/payment_pro/config.php.

Then it had a click link telling if the config.php file was not there to make that file adding this code to it, but change the password to something else with 24 digits:

<?php

  if(!defined('PAYMENT_PRO_CRYPT_KEY')) {
  define('PAYMENT_PRO_CRYPT_KEY', 'randompasswordchangethis');
 }

So I made a new file with that and changed the password to another with 24 digits and uploaded to correct location.  Then when attempted to install PayPal again, I got this message:

Warning: Cannot modify header information - headers already sent by (output started at /home/myserverplace/public_html/mydomainplace/oc-content/plugins/payment_pro/config.php:1) in /home/myserveplace/public_html/mydomainplace/oc-includes/osclass/utils.php on line 1743

I read in this form to make sure no white spaces above or after <?php  and there was not.  Then I read another post to backup my files/database and reinstall everything.  Before I did that, I took one more look at the code the popup wanted me to install in the new config.php file......

<?php

  if(!defined('PAYMENT_PRO_CRYPT_KEY')) {
  define('PAYMENT_PRO_CRYPT_KEY', 'randompasswordchangethis');
 }

And there it was!  A little error that made a big headache for several of us who are no experts with php.  It was in this line....

define('PAYMENT_PRO_CRYPT_KEY', 'randompasswordchangethis');

Notice there is an extra SPACE after the comma!  I REMOVED THAT SPACE to read this:

define('PAYMENT_PRO_CRYPT_KEY','randompasswordchangethis');

Then went back in to finish the install of PayPal, and it worked!
« Last Edit: June 09, 2018, 07:43:15 pm by NDboots »