Skip to content

Checking for Already purchased product fails if the receiving wallet is different. #1000

@yondifon

Description

@yondifon

Describe the bug
Using $customer->paid($product)) fails when product was purchased with money transferred to another wallet.

To Reproduce
Steps to reproduce the behavior:
1.

$cart = app(Cart::class)
    ->withItem($product, receiving: $receiving)
;

$user->payCart($cart);
$user->paid($product); // returns null 

Expected behavior
The method is supposed to return true but it still return false.
It fails when it should pass (as it should though, The underlying code needs to provide a $receiving wallet

Server:

  • php version: 8.3
  • database: mysql 8.0
  • wallet version 10.1
  • cache lock: redis
  • cache wallets: redis

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions