Mam pytanie dotyczące parametru signature w integracji z Dotpay.
Mam taki kod:
private function generateSignature(Request $request, int $orderId, string $dotPayPrice, string $dotPayCurrency, string $dateTime, string $control, string $description, string $email, string $companyName, string $companeEmail): string { $pin = env('DOTPAY_PIN'); $sign = $pin . env('DOTPAY_SHOP_ID') . //$_POST['operation_number']. //$_POST['operation_type']. 'new'. $dotPayPrice . $dotPayCurrency . //$_POST['operation_withdrawal_amount']. //$_POST['operation_commission_amount']. //$_POST['is_completed']. $dotPayPrice . $dotPayCurrency . $dateTime . //$_POST['operation_related_number']. $control . $description . $email . $companyName . $companeEmail; //$_POST['credit_card_issuer_identification_number']. //$_POST['credit_card_masked_number']. //$_POST['credit_card_expiration_year']. //$_POST['credit_card_expiration_month']. //$_POST['credit_card_brand_codename']. //$_POST['credit_card_brand_code']. //$_POST['credit_card_unique_identifier']. //$_POST['credit_card_id']. //$_POST['channel']. //$_POST['channel_country']. //$_POST['geoip_country']; $signature = hash('sha256', $sign); return $signature; }
dotPayPrice = kwota transakcji, $dotPayCurrency = waluta transakcji.
Według dotpay moje signature jest źle obliczane (otrzymuję inną wartość signature zwrotną od Dotpaya).
Wie ktoś może co mam nie tak w tej funkcji?