sign()
sign(string $message, $serialNumber, string|resource $privateKey) : \Yurun\PaySDK\Lib\Encrypt\SHA256withRSA\SignatureResult
Sign Message.
Parameters
string | $message | Message to sign |
$serialNumber | ||
string|resource | $privateKey | Merchant Certificate Private Key (string - PEM formatted key, or resource - key returned by openssl_get_privatekey) |