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.
Refer to the Documentation on how to build, run or deploy the T2-Project services.
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.
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. |
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 |