mirror of
https://github.com/hanzo-fi/payments.git
synced 2026-10-30 20:31:20 +00:00
12 lines
253 B
Go
12 lines
253 B
Go
package services
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/formancehq/payments/internal/models"
|
|
)
|
|
|
|
func (s *Service) PaymentsCreate(ctx context.Context, payment models.Payment) error {
|
|
return handleEngineErrors(s.engine.CreateFormancePayment(ctx, payment))
|
|
}
|