We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a05a975 commit d38f7efCopy full SHA for d38f7ef
src/Traits/CanBePaid.php
@@ -54,9 +54,8 @@ public function refund(Product $product): bool
54
->firstOrFail();
55
56
return DB::transaction(function () use ($product, $transfer) {
57
- return $transfer->update(['refund', 1]) && $product
58
- ->transfer($this, $product->getAmountProduct(), $product->getMetaProduct())
59
- ->exists;
+ $product->transfer($this, $product->getAmountProduct(), $product->getMetaProduct());
+ return $transfer->update(['refund' => 1]);
60
});
61
}
62
0 commit comments