RL.PaymentProviders.Api.Core 5.0.0

dotnet add package RL.PaymentProviders.Api.Core --version 5.0.0
NuGet\Install-Package RL.PaymentProviders.Api.Core -Version 5.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="RL.PaymentProviders.Api.Core" Version="5.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RL.PaymentProviders.Api.Core --version 5.0.0
#r "nuget: RL.PaymentProviders.Api.Core, 5.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install RL.PaymentProviders.Api.Core as a Cake Addin
#addin nuget:?package=RL.PaymentProviders.Api.Core&version=5.0.0

// Install RL.PaymentProviders.Api.Core as a Cake Tool
#tool nuget:?package=RL.PaymentProviders.Api.Core&version=5.0.0

RL.PaymentProviders.Api.Core

Getting started

This library contain classes and interfaces that allow simplify and extend work with refit and/or payment providers

How to enable logging for refit

  • Implement your custom logger using IApiLogger
  • Create rest service with your custom logger
using RL.PaymentProviders.Api.Core;

class MyCustomLogger : IApiLogger
{

}

var myCustomLogger = new MyCustomLogger(); 
var httpClient = new HttpClient(new HttpLoggingHandler(myCustomLogger)){ BaseAddress = /**/};
var googlePayApi = Refit.RestService.For<IGooglePayApi>(httpClient);

As an example DebugLoggingHandler can be used to see how it works

If you are using RefitSettings.AuthorizationHeaderValueGetter it won't be working with custom HttpClient. In this case you can use BearerAuthHeaderHandler to avoid this Refit [BUG] AuthorizationHeaderValueGetter ignored while using RefitSettings

using RL.PaymentProviders.Api.Core;

class MyCustomLogger : IApiLogger
{

}

var apiKey = "some api key";
var myCustomLogger = new MyCustomLogger(); 
var httpClient = new HttpClient(new BearerAuthHeaderHandler(apiKey, new HttpLoggingHandler(myCustomLogger))){ BaseAddress = /**/};
var googlePayApi = Refit.RestService.For<IGooglePayApi>(httpClient);
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on RL.PaymentProviders.Api.Core:

Package Downloads
RL.PaymentProviders.Api.SumUp

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
5.0.0 152 8/3/2023
4.0.0 248 8/2/2023
3.0.0 153 8/2/2023
2.0.0 155 8/2/2023
1.0.0 151 8/2/2023