Service - Payment Method Manager: Difference between revisions
Jump to navigation
Jump to search
(Created page with "= Overview = Each payment method is handled by a Service - Payment Method (handlers) service, with Service - Payment Method Generic taking all new/simple payment meth...") |
No edit summary |
||
| Line 45: | Line 45: | ||
* partition key: paymentMethodId | * partition key: paymentMethodId | ||
* sort key: (none) | |||
== UserPaymentMethods == | |||
Records which Handler manages each user payment method | |||
<syntaxhighlight lang="JavaScript"> | |||
{ | |||
userPaymentMethodId | |||
paymentMethodHandlerServiceNameTag | |||
} | |||
</syntaxhighlight> | |||
* partition key: userPaymentMethodId | |||
* sort key: (none) | * sort key: (none) | ||
Revision as of 12:34, 16 December 2021
Overview
Each payment method is handled by a Service - Payment Method (handlers) service, with Service - Payment Method Generic taking all new/simple payment methods.
The Payment Method Manager service handles shared orchestration of the Payment Method Handler services.
Repository
https://bitbucket.org/izara-market-products/izara-market-products-payment-method-manager/src/master/
DynamoDB tables
Standard Config Table Per Service
Configuration tags
{
configKey: "ProductGraphServiceName"
configTag: "ProductGraphServiceName"
configValue: xxx // eg: "ProductGraph"
}
{
configKey: "PaymentMethodHandlerService"
configTag: xxx // paymentMethodHandlerServiceNameTag, eg: "PaymentMethodGeneric"
configValue: {
serviceName: xxx // eg: "PaymentMethodGeneric", this is the actual deployed service name
}
}
PaymentMethods
Records which Handler manages each payment method
{
paymentMethodId
paymentMethodHandlerServiceNameTag
}
- partition key: paymentMethodId
- sort key: (none)
UserPaymentMethods
Records which Handler manages each user payment method
{
userPaymentMethodId
paymentMethodHandlerServiceNameTag
}
- partition key: userPaymentMethodId
- sort key: (none)