mirror of
https://github.com/hanzo-fi/payments.git
synced 2026-10-30 20:31:20 +00:00
* fix(plaid): fix name displayed when launching plaid link * rename to application name instead
18 lines
573 B
Go
18 lines
573 B
Go
package services
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/formancehq/payments/internal/models"
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
func (s *Service) PaymentServiceUsersCreateLink(ctx context.Context, ApplicationName string, psuID uuid.UUID, connectorID models.ConnectorID, idempotencyKey *uuid.UUID, ClientRedirectURL *string) (string, string, error) {
|
|
attemptID, link, err := s.engine.CreatePaymentServiceUserLink(ctx, ApplicationName, psuID, connectorID, idempotencyKey, ClientRedirectURL)
|
|
if err != nil {
|
|
return "", "", handleEngineErrors(err)
|
|
}
|
|
|
|
return attemptID, link, nil
|
|
}
|