protected function getPaymentParams(PurchaseRequest $purchaseRequest, Purchase $purchase)
{
$paymentProfile = $purchase->paymentProfile;
$options = $paymentProfile->options;
$purchaser = $purchase->purchaser;
$params = [
'paymentProfile' => $paymentProfile,
'purchase' => $purchase,
'formData' => [
'order-id' => $purchaseRequest->purchase_request_id,
'MrchLogin' => $options['merchant_id'],
'OutSum' => $purchase->cost,
'InvDesc' => $purchase->purchasableTitle . ', ' . $boardHost['host'],
'Encoding' => 'utf-8',
'custom' => $purchaseRequest->request_key,
'Email' => $purchaser->email ?? '',
'shp_rk' => $purchaseRequest->request_key
]
];
$params['formData']['SignatureValue'] = md5(''.$options ['merchant_id'].':'.$purchase->cost.':'.$options['secretkey'].':'.$purchaseRequest->purchase_request_id.'');
return $params;
}