Handles payments, and access to digital goods and services
Configuration is handled via asp.net configuration providers
Keys with defaults are set in appsettings.json
- Start top up
- wait till payment is verified
- (optional) plan purchase (locks some amount of balance)
- purchase product/service
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 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.
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