diff options
Diffstat (limited to 'c2ec/provider.go')
-rw-r--r-- | c2ec/provider.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/c2ec/provider.go b/c2ec/provider.go new file mode 100644 index 0000000..33bee3b --- /dev/null +++ b/c2ec/provider.go @@ -0,0 +1,14 @@ +package main + +type ProviderTransaction interface { + AllowWithdrawal() bool + AbortWithdrawal() bool + Bytes() []byte +} + +type ProviderClient interface { + SetupClient(provider *Provider) error + GetTransaction(transactionId string) (ProviderTransaction, error) + Refund(transactionId string) error + FormatPayto(w *Withdrawal) string +} |