refix transaction
This commit is contained in:
parent
fd10784602
commit
3d79f8bde3
1 changed files with 2 additions and 2 deletions
|
|
@ -269,7 +269,7 @@ class Transaction extends Model
|
|||
public function assignPaymentId(string $foreign_id): void
|
||||
{
|
||||
$foreign_id = self::getPaymentForeignKeyName($this->payment_mode, $foreign_id);
|
||||
if ($this->attributes['foreign_id'] === $foreign_id) {
|
||||
if (($this->attributes['foreign_id'] ?? null) === $foreign_id) {
|
||||
return;
|
||||
}
|
||||
if (!\is_numeric($this->payment_mode->value)) {
|
||||
|
|
@ -293,7 +293,7 @@ class Transaction extends Model
|
|||
public function assignRefundId(string $foreign_refund_id): void
|
||||
{
|
||||
$foreign_refund_id = self::getPaymentForeignKeyName($this->payment_mode, $foreign_refund_id);
|
||||
if ($this->attributes['foreign_refund_id'] === $foreign_refund_id) {
|
||||
if (($this->attributes['foreign_refund_id'] ?? null) === $foreign_refund_id) {
|
||||
return;
|
||||
}
|
||||
if (!\is_numeric($this->payment_mode->value)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue