Service - Payment Method Manager: Difference between revisions

From Izara Wiki
Jump to navigation Jump to search
No edit summary
Line 33: Line 33:
</syntaxhighlight>
</syntaxhighlight>


== PaymentMethods ==
== PaymentMethodRecord ==


Records which Handler manages each payment method
Records which Handler manages each payment method

Revision as of 12:39, 4 February 2022

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
	}
}

PaymentMethodRecord

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)

Working documents

Payment Method Manager