Files
payments/internal/api/services/payment_service_users_create_link.go
Paul NicolasandGitHub 23659ec06e fix(plaid): fix name displayed when launching plaid link (#504)
* fix(plaid): fix name displayed when launching plaid link

* rename to application name instead
2025-08-01 09:38:17 +00:00

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
}