Просмотр исходного кода

fix: recipient_description na criação do recebedor pagarme

Gustavo Mantovani 1 неделя назад
Родитель
Сommit
40e78e6ca7
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/Services/Pagarme/PagarmeRecipientService.php

+ 1 - 1
app/Services/Pagarme/PagarmeRecipientService.php

@@ -97,7 +97,7 @@ class PagarmeRecipientService
             'recipient_id'                   => $recipientId,
             'recipient_id'                   => $recipientId,
             'recipient_name'                 => $data['recipient_name'],
             'recipient_name'                 => $data['recipient_name'],
             'recipient_email'                => $data['recipient_email'],
             'recipient_email'                => $data['recipient_email'],
-            'recipient_description'          => $data['recipient_description'],
+            'recipient_description'          => $data['recipient_description'] ?? '',
             'recipient_document'             => $data['recipient_document'],
             'recipient_document'             => $data['recipient_document'],
             'recipient_type'                 => $payload->registerInformation->type,
             'recipient_type'                 => $payload->registerInformation->type,
             'recipient_code'                 => $recipientCode,
             'recipient_code'                 => $recipientCode,