Commit e85b3798 authored by Mark Harding's avatar Mark Harding

(fix): do not accept wire payment if not receiver account - closes #826

No related merge requests found
Pipeline #81758399 failed with stages
in 4 minutes and 37 seconds
......@@ -266,6 +266,9 @@ class Manager
throw new \Exception("Not implemented ETH yet");
break;
case 'usd':
if (!$this->receiver->getMerchant() || $this->receiver->getMerchant()['id']) {
throw new \Exception("This channel is not able to receive USD at the moment");
}
$intent = new PaymentIntent();
$intent
->setUserGuid($this->sender->getGuid())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment