Coflnet.Payments.Client
0.16.1
dotnet add package Coflnet.Payments.Client --version 0.16.1
NuGet\Install-Package Coflnet.Payments.Client -Version 0.16.1
<PackageReference Include="Coflnet.Payments.Client" Version="0.16.1" />
paket add Coflnet.Payments.Client --version 0.16.1
#r "nuget: Coflnet.Payments.Client, 0.16.1"
// Install Coflnet.Payments.Client as a Cake Addin #addin nuget:?package=Coflnet.Payments.Client&version=0.16.1 // Install Coflnet.Payments.Client as a Cake Tool #tool nuget:?package=Coflnet.Payments.Client&version=0.16.1
Payments
Handles payments, and access to digital goods and services
Configuration
Configuration is handled via asp.net configuration providers
Keys with defaults are set in appsettings.json
How purchases work
- Start top up
- wait till payment is verified
- (optional) plan purchase (locks some amount of balance)
- purchase product/service
Setup
Becuase it is the esiest by default stripe is used.
To configure stripe get your stripe KEY
and SIGNING_SECRET
from stripe.com and set them as configuration.
(either modify appsettings.json or set the enviromentvariables STRIPE__KEY
and STRIPE__SIGNING_SECRET
)
Next create a webhook callback to /Callback/stripe
that triggers on confirmed purchase.
Paypal
Paypal can be configured with PAYPAL__SECRET
, PAYPAL__ID
and PAYPAL__IS_SANDBOX
Create a webhook callback to /Callback/paypal
to allow for payments to be verified.
Events
This microservice can produce transaction events into a Kafka Topic.
To configure it set the configuration variables KAFKA_HOST
and KAFKA_TRANSACTION_TOPIC
.
The format and fields of the events can be seen in the TransactionEvent class
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | 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 was computed. 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
-
net6.0
- JsonSubTypes (>= 2.0.1)
- Newtonsoft.Json (>= 13.0.3)
- Polly (>= 8.1.0)
- RestSharp (>= 112.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.16.1 | 1,303 | 10/31/2024 |
0.16.0 | 588 | 10/9/2024 |
0.15.0 | 309 | 10/5/2024 |
0.14.0 | 661 | 8/27/2024 |
0.13.0 | 1,422 | 6/15/2024 |
0.12.1 | 771 | 4/24/2024 |
0.12.0 | 2,274 | 10/14/2023 |
0.11.2 | 2,078 | 2/13/2023 |
0.11.1 | 309 | 2/11/2023 |
0.11.0 | 309 | 2/10/2023 |
0.10.0 | 608 | 12/30/2022 |
0.9.0 | 1,212 | 9/22/2022 |
0.8.0 | 677 | 8/21/2022 |
0.7.1 | 709 | 7/26/2022 |
0.7.0 | 471 | 7/26/2022 |
0.6.0 | 491 | 7/17/2022 |
0.5.1 | 1,307 | 4/18/2022 |
0.5.0 | 672 | 4/15/2022 |
0.4.1 | 497 | 4/15/2022 |
0.4.0 | 479 | 4/15/2022 |
0.3.0 | 502 | 4/13/2022 |
0.2.2 | 969 | 2/5/2022 |
0.2.1 | 462 | 2/5/2022 |
0.2.0 | 465 | 2/2/2022 |
0.1.0 | 681 | 11/28/2021 |
0.0.2 | 428 | 10/23/2021 |
0.0.1 | 645 | 9/9/2021 |
Minor update