Skip to content

t2-project/payment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Payment Service

This service is part of the T2-Project. It is responsible for contacting the payment provider.

In a more real situation, a payment service would contact different payment providers, e.g. PayPal or a certain credit institute based on which payment method a user chose. However, this payment service knows only one payment provider and always contact that one.

The payment provider can be e.g. the Credit Institute service or the E2E Test service.

Build and Run

Refer to the Documentation on how to build, run or deploy the T2-Project services.

Usage

This service listens to incoming messages on a queue named 'payment'. The orchestrator sends messages to that queue.

Normally you do not want to interact directly with the payment service. However, it might be useful to run it locally for debugging.

Application Properties

property read from env var description
t2.payment.provider.enabled T2_PAYMENT_PROVIDER_ENABLED boolean value, defaults to true. if false, no connection to payment provider is made.
t2.payment.provider.dummy.url T2_PAYMENT_PROVIDER_DUMMY_URL url of the payment provider.
t2.payment.provider.timeout T2_PAYMENT_PROVIDER_TIMEOUT timeout in seconds. the payment service waits this long for an reply from the payment provider.

Properties for the CDC

See eventuate tram cdc for explanations.

property read from env var
spring.datasource.url SPRING_DATASOURCE_URL
spring.datasource.username SPRING_DATASOURCE_USERNAME
spring.datasource.password SPRING_DATASOURCE_PASSWORD
spring.datasource.driver-class-name SPRING_DATASOURCE_DRIVER_CLASS_NAME
eventuatelocal.kafka.bootstrap.servers EVENTUATELOCAL_KAFKA_BOOTSTRAP_SERVERS
eventuatelocal.zookeeper.connection.string EVENTUATELOCAL_ZOOKEEPER_CONNECTION_STRING

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published