Versions in this module Expand all Collapse all v0 v0.4.1 Oct 5, 2026 Changes in this version + const DefaultBaseURL + type APIError struct + Body any + Msg string + Status int + func (e *APIError) Error() string + type BankAccountsResource struct + func (r *BankAccountsResource) List(ctx context.Context) (any, error) + type CheckoutOptions struct + FromDate string + Limit int + OrderCode string + Page int + Status string + ToDate string + type CheckoutsResource struct + func (r *CheckoutsResource) Cancel(ctx context.Context, checkoutID, key string) (any, error) + func (r *CheckoutsResource) Create(ctx context.Context, body map[string]any, key string) (any, error) + func (r *CheckoutsResource) Get(ctx context.Context, checkoutID string) (any, error) + func (r *CheckoutsResource) List(ctx context.Context, options CheckoutOptions) (any, error) + type Client struct + BankAccounts *BankAccountsResource + Checkouts *CheckoutsResource + EmailConfigs *EmailConfigsResource + EmailLogs *EmailLogsResource + EmailSuppressions *EmailSuppressionsResource + Keys *KeysResource + PaymentProfile *PaymentProfileResource + QR *QRResource + Sandbox *SandboxResource + Transactions *TransactionsResource + VA *VirtualAccountsResource + WebhookLogs *WebhookLogsResource + Webhooks *WebhooksResource + func NewClient(config Config) (*Client, error) + func NewClientFromEnv() (*Client, error) + func (c *Client) Me(ctx context.Context) (any, error) + func (c *Client) SetClientSecret(secret string) + type Config struct + BaseURL string + ClientID string + ClientSecret string + HTTPClient *http.Client + Password string + Username string + type EmailConfigsResource struct + func (r *EmailConfigsResource) Create(ctx context.Context, body map[string]any) (any, error) + func (r *EmailConfigsResource) Get(ctx context.Context, configID string) (any, error) + func (r *EmailConfigsResource) List(ctx context.Context) (any, error) + func (r *EmailConfigsResource) Remove(ctx context.Context, configID string) (any, error) + func (r *EmailConfigsResource) ResendVerification(ctx context.Context, configID, email string) (any, error) + func (r *EmailConfigsResource) Test(ctx context.Context, configID string) (any, error) + func (r *EmailConfigsResource) Update(ctx context.Context, configID string, body map[string]any) (any, error) + func (r *EmailConfigsResource) Verify(ctx context.Context, configID string, body map[string]any) (any, error) + type EmailLogOptions struct + ConfigID string + EventType string + FromDate string + Limit int + Page int + Status string + ToDate string + type EmailLogsResource struct + func (r *EmailLogsResource) List(ctx context.Context, options EmailLogOptions) (any, error) + func (r *EmailLogsResource) Stats(ctx context.Context, options EmailLogOptions) (any, error) + type EmailSuppressionsResource struct + func (r *EmailSuppressionsResource) List(ctx context.Context) (any, error) + func (r *EmailSuppressionsResource) Remove(ctx context.Context, email string) (any, error) + type KeysResource struct + func (r *KeysResource) Destroy(ctx context.Context, keyID string) (any, error) + func (r *KeysResource) Generate(ctx context.Context, name string) (any, error) + func (r *KeysResource) List(ctx context.Context) (any, error) + func (r *KeysResource) Reveal(ctx context.Context, keyID string, confirmation map[string]any) (any, error) + func (r *KeysResource) Rotate(ctx context.Context, keyID string) (any, error) + type PaymentProfileResource struct + func (r *PaymentProfileResource) Get(ctx context.Context) (any, error) + func (r *PaymentProfileResource) RevealReturnSecret(ctx context.Context, confirmation map[string]any) (any, error) + func (r *PaymentProfileResource) RotateReturnSecret(ctx context.Context) (any, error) + func (r *PaymentProfileResource) Set(ctx context.Context, body map[string]any) (any, error) + type QRResource struct + func (r *QRResource) Cancel(ctx context.Context, qrCodeID string, body map[string]any) (any, error) + func (r *QRResource) Generate(ctx context.Context, body map[string]any) (any, error) + type SandboxResource struct + func (r *SandboxResource) CreateTransaction(ctx context.Context, body map[string]any) (any, error) + type TransactionIterator struct + func (i *TransactionIterator) Err() error + func (i *TransactionIterator) Next() bool + func (i *TransactionIterator) Value() any + type TransactionOptions struct + Limit int + Page int + SinceID string + type TransactionsResource struct + func (r *TransactionsResource) Iterate(ctx context.Context, virtualAccountNumber string, options TransactionOptions) *TransactionIterator + func (r *TransactionsResource) List(ctx context.Context, virtualAccountNumber string, options TransactionOptions) (any, error) + func (r *TransactionsResource) Retry(ctx context.Context, transactionID, targetType, targetID string) (any, error) + type VirtualAccountsResource struct + func (r *VirtualAccountsResource) List(ctx context.Context, bankAccountID string) (any, error) + func (r *VirtualAccountsResource) Register(ctx context.Context, body map[string]any) (any, error) + func (r *VirtualAccountsResource) RegisterNotification(ctx context.Context, vaID string, body map[string]any) (any, error) + func (r *VirtualAccountsResource) Verify(ctx context.Context, requestID, code string) (any, error) + func (r *VirtualAccountsResource) VerifyNotification(ctx context.Context, requestID, code string) (any, error) + type WebhookLogOptions struct + FromDate string + Limit int + Page int + Status string + ToDate string + type WebhookLogsResource struct + func (r *WebhookLogsResource) List(ctx context.Context, options WebhookLogOptions) (any, error) + func (r *WebhookLogsResource) Stats(ctx context.Context, options WebhookLogOptions) (any, error) + type WebhookResult struct + OK bool + Payload any + Reason string + func VerifyWebhook(rawBody []byte, timestamp, signature, secret string, toleranceSeconds ...int) (WebhookResult, error) + type WebhooksResource struct + func (r *WebhooksResource) Create(ctx context.Context, body map[string]any) (any, error) + func (r *WebhooksResource) List(ctx context.Context) (any, error) + func (r *WebhooksResource) Remove(ctx context.Context, configID string) (any, error) + func (r *WebhooksResource) Test(ctx context.Context, body map[string]any) (any, error) + func (r *WebhooksResource) Update(ctx context.Context, configID string, body map[string]any) (any, error)