Skip to content

Commit

Permalink
Merge pull request #12 from SilverFire/patch-2
Browse files Browse the repository at this point in the history
Added WMT currency support
  • Loading branch information
dercoder authored Dec 28, 2024
2 parents b8ec2c0 + 769cd70 commit 73e650f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Message/AbstractRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,8 @@ public function getCurrencyByPurse($purse)
return 'BYR';
case 'X':
return 'BTC';
case 'T':
return 'USDT';
default:
return null;
}
Expand Down
1 change: 1 addition & 0 deletions tests/Message/PurchaseRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public function testGetCurrencyByPurse()
$this->assertSame('UZS', $this->request->getCurrencyByPurse('Y123428476799'));
$this->assertSame('BYR', $this->request->getCurrencyByPurse('B123428476799'));
$this->assertSame('BTC', $this->request->getCurrencyByPurse('X123428476799'));
$this->assertSame('USDT', $this->request->getCurrencyByPurse('T123428476799'));
$this->assertNull($this->request->getCurrencyByPurse('A123428476799'));
}

Expand Down

0 comments on commit 73e650f

Please sign in to comment.