<?php
$AMOUNT = '1000'; # wird natürlich dynamisch erzeugt
$CURRENCY = 'CHF';
$LANGUAGE = 'DE_de';
$ORDERID = '1234'; # wird natürlich dynamisch erzeugt
$OWNERTOWN = 'CH';
$OWNERCTY = 'Irgendwo';
$OWNERADDRESS = 'irgendwostrasse';
$EMAIL = 'info@sonstwas.ch';
$OWNERZIP = '2222';
$PSPID = 'pspidTEST'; # wird von Postfinace gegeben
$SECUREID = 'testsecureid1999!?'; # wird in der systemverwaltung eingegeben
$code = sha1("AMOUNT=$AMOUNT"."$SECUREID"."CURRENCY=$CURRENCY"."$SECUREID"."EMAIL=$EMAIL"."$SECUREID"."LANGUAGE=$LANGUAGE"."$SECUREID"."ORDERID=$ORDERID"."$SECUREID"."OWNERADDRESS=$OWNERADDRESS"."$SECUREID"."OWNERCTY=$OWNERCTY"."$SECUREID"."OWNERTOWN=$OWNERTOWN"."$SECUREID"."OWNERZIP=$OWNERZIP"."$SECUREID"."PSPID=$PSPID"."$SECUREID");
var_dump($code);
//$LANGUAGE = 'de_DE';
$code = sha1("AMOUNT=$AMOUNT"."$SECUREID".
"CURRENCY=$CURRENCY"."$SECUREID".
"EMAIL=$EMAIL"."$SECUREID".
"LANGUAGE=$LANGUAGE"."$SECUREID".
"ORDERID=$ORDERID"."$SECUREID".
"OWNERADDRESS=$OWNERADDRESS"."$SECUREID".
"OWNERCTY=$OWNERCTY"."$SECUREID".
"OWNERTOWN=$OWNERTOWN"."$SECUREID".
"OWNERZIP=$OWNERZIP"."$SECUREID".
"PSPID=$PSPID"."$SECUREID"
);
var_dump($code);
$test = 'AMOUNT=1500Mysecretsig1875!?CURRENCY=EURMysecretsig1875!?LANGUAGE=en_USMysecretsig1875!?ORDERID=1234Mysecretsig1875!?PSPID=MyPSPIDMysecretsig1875!?';
$test = sha1($test);
var_dump($test);
if( strcmp ( $test , strtolower('F4CC376CD7A834D997B91598FA747825A238BE0A')) === 0) {
echo 'gleich';
}
- Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
- string(40) "f3ef90acde485d2bb1b9747fc4af8582e0e997c0"
string(40) "f3ef90acde485d2bb1b9747fc4af8582e0e997c0"
string(40) "f4cc376cd7a834d997b91598fa747825a238be0a"
gleich
preferences:
304.55 ms | 406 KiB | 465 Q