1
0
mirror of synced 2024-11-22 13:26:10 +03:00

Backward compatibility with previously created payments

This commit is contained in:
Pavel 2019-07-03 13:11:20 +03:00
parent 5eb64d9c84
commit 376024e2bd

View File

@ -302,6 +302,17 @@ class RCrmActions
return '';
}
/**
* Returns true if provided externalId in new format (id_clientId)
*
* @param $externalId
* @return bool
*/
public static function isNewExternalId($externalId)
{
return !(false === strpos($externalId, '_'));
}
/**
* Generates payment external ID
*