Skip to content

Commit 8e4d0ad

Browse files
committed
tweak confirm logic
1 parent 874c757 commit 8e4d0ad

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

app/Jobs/ConfirmPayment.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,14 @@ public function handle(): void
4545
if ($this->adminDashboard->adverts_enabled) {
4646
$this->offer->auto_confirm_at = Carbon::now()->addMinutes(5);
4747
} else {
48-
$this->offer->auto_confirm_at = Carbon::now()->addSecond(15);
48+
if ($this->offer->type === "buy") {
49+
$this->offer->auto_confirm_at = Carbon::now()->addSecond(15);
50+
} else {
51+
$this->offer->auto_confirm_at = Carbon::now()->addHours(2);
52+
$message = "Fiat has been received, thank you; however, for necessary bank checks to complete and to prevent me losing funds "
53+
. "from a transaction being reversed. Confirmation will occur in 2 hours. Thank you for waiting. ";
54+
$robosats->webSocketCommunicate($this->offer, $this->offer->robots()->first(), $message);
55+
}
4956
}
5057
$this->offer->save();
5158

0 commit comments

Comments
 (0)