lib/velopayments/configuration.rb
# Returns Auth Settings hash for api client.
Returns Auth Settings hash for api client.
Returns Auth Settings hash for api client .
def auth_settings
      {
        'OAuth2' =>
          {
            type: 'oauth2',
            in: 'header',
            key: 'Authorization',
            value: "Bearer #{access_token}"
          },
        'basicAuth' =>
          {
            type: 'basic',
            in: 'header',
            key: 'Authorization',
            value: basic_auth_token
          },
        'oAuthVeloBackOffice' =>
          {
            type: 'oauth2',
            in: 'header',
            key: 'Authorization',
            value: "Bearer #{access_token}"
          },
      }
    end
def auth_settings { 'OAuth2' => { type : 'oauth2' , in : 'header' , key : 'Authorization' , value : "Bearer #{access_token}" } , 'basicAuth' => { type : 'basic' , in : 'header' , key : 'Authorization' , value : basic_auth_token } , 'oAuthVeloBackOffice' => { type : 'oauth2' , in : 'header' , key : 'Authorization' , value : "Bearer #{access_token}" } , } end
Returns Auth Settings hash for api client.
Returns Auth Settings hash for api client .