Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration is confusing #11

Open
iadj opened this issue Feb 29, 2016 · 0 comments
Open

Configuration is confusing #11

iadj opened this issue Feb 29, 2016 · 0 comments

Comments

@iadj
Copy link

iadj commented Feb 29, 2016

I'm trying to configure this component in Yii2, but the following part confuses me:
Create file config.php for RESTAPI and config.php for Classic API every where:

I figured out we have to use the config-rest.php file from the project itself in the vendor folder. Normally you should always be able to set all parameters from within the base yii2 config file.

Can't we just define all parameters in the payPalRest component like so?

  'payPalRest'               => [
      'class'        => 'kun391\paypal\RestAPI',
      'pathFileConfig' =>  str_replace('\config', '', dirname(__FILE__)) . getenv('PAYPAL_CONFIG_PATH'),
      'successUrl' => '', //full url action return url
      'cancelUrl' => '' //full url action return url
      'endpoint'       => 'api.sandbox.paypal.com',
      'client_id'      => getenv('PAYPAL_CLIENT_ID'),
      'secret'         => getenv('PAYPAL_CLIENT_SECRET'),
      'business_owner' => getenv('PAYPAL_USERNAME'),
    'mode'                   => 'sandbox',
    'http.ConnectionTimeOut' => 60,
    'log.LogEnabled'         => false,
    'log.FileName'           => '@api/runtime/PayPal.log',
    'log.LogLevel'           => 'FINE',
  ],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant