瀏覽代碼

fix: address ao criar provider

Gustavo Mantovani 1 周之前
父節點
當前提交
8261479734

+ 1 - 0
app/Services/Pagarme/Concerns/FormatsPagarmeData.php

@@ -25,6 +25,7 @@ trait FormatsPagarmeData
         }
 
         return [
+            'street'          => $streetSegment,
             'street_number'   => (string) ($data['number'] ?? $matches[1] ?? 'S/N'),
             'neighborhood'    => (string) ($data['district'] ?? $segments[1] ?? 'N/A'),
             'reference_point' => (string) ($data['reference_point'] ?? 'N/A'),

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

@@ -47,7 +47,7 @@ class PagarmeRecipientService
             ),
 
             address: new RecipientAddressData(
-                street: $data['address'],
+                street: $addressParts['street'],
                 complementary: $addressParts['complementary'],
                 streetNumber: $addressParts['street_number'],
                 neighborhood: $addressParts['neighborhood'],

+ 1 - 1
app/Services/PushNotificationService.php

@@ -36,7 +36,7 @@ class PushNotificationService
             ->withNotification(Notification::create($notification->title(), $notification->body()))
             ->withAndroidConfig(AndroidConfig::fromArray([
                 'notification' => ['channel_id' => 'default'],
-                'priority' => 'high',
+                'priority'     => 'high',
             ]));
 
         $report = $this->messaging->sendMulticast($message, $tokens);