Reorganized code + migration to go1.22
This commit is contained in:
1 parent
e3d77d55b9
commit
7369777098
25 files changed
+825
-605
No files matched your search
@@ -0,0 +1,32 @@
|
||||
package state
|
||||
|
||||
type PaymentState string
|
||||
|
||||
const (
|
||||
// initial state
|
||||
StatePreinitialized PaymentState = "preinitialized"
|
||||
// initial state
|
||||
StateInitialized PaymentState = "initialized"
|
||||
|
||||
// state given to async payments (eg. GooglePay,ApplePay...)
|
||||
StatePending PaymentState = "pending"
|
||||
|
||||
// state on response
|
||||
StateAccepted PaymentState = "accepted"
|
||||
StateError PaymentState = "error"
|
||||
StateCanceledInitialization PaymentState = "canceled_initialization"
|
||||
|
||||
// state after confirmation
|
||||
StateCompleted PaymentState = "completed"
|
||||
StateVoided PaymentState = "voided"
|
||||
StateCanceled PaymentState = "canceled"
|
||||
)
|
||||
|
||||
type PaymentGateway string
|
||||
|
||||
const (
|
||||
GatewayWsPay PaymentGateway = "wspay"
|
||||
GatewayStripe PaymentGateway = "stripe"
|
||||
GatewayVivaWallet PaymentGateway = "viva-wallet"
|
||||
GatewayMock PaymentGateway = "mock"
|
||||
)
|
||||
Reference in new issue
Block a user