Backward compatibility with previously created payments
This commit is contained in:
parent
5eb64d9c84
commit
376024e2bd
@ -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
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user