addValidation(“fornamn”,”req”,” (Missing text)”);
$validator->addValidation(“efternamn”,”req”,” (Missing text)”);
$validator->addValidation(“epost”,”req”,” (Missing text)”);
$validator->addValidation(“epost”,”email”,” (No valid email address)”);
$validator->addValidation(“summa”,”req”,” (Missing sum)”);
$validator->addValidation(“summa”,”num”,” (Please only use digits in sum)”);
}

if( ( ! isset($_POST[‘skicka’]) ) or ( ! $validator->ValidateForm() ) ) {
?>

Donate

ValidateForm() ) {
echo ‘

Please correct the fields marked red below.

‘;
$error_hash = $validator->GetErrors();
}
?>

With two simple steps You can transfer money to us and with a donation help our entrepreneurs in the Congo to actively develop. When the deposit is made, a receipt comes by e-mail.

We use secure transmissions with one of the biggest payment providers in Sweden, Payson. Please fill out the form below to continue to a secure payment form.

First name‘.$error_hash[‘fornamn’].
‘‘; } ?>:
‘.$error_hash[‘efternamn’].
‘‘; } ?>:
‘.$error_hash[‘epost’].
‘‘; } ?>:
‘.$error_hash[‘summa’].
‘‘; } ?>:

setCurrencyCode(currencyCode::SEK);
} else {
$payData->setCurrencyCode(currencyCode::EUR);
}

// Språk (SV / EN / FI)
$payData->setLocaleCode(localeCode::EN);

// Inte använda Payson-garanti
$payData->setGuaranteeOffered(guaranteeOffered::NO);

/*
* Start betalning
*/
$payResponse = $api->pay($payData);

/*
* Skicka besökare till Payson om allt är ok
*/
if ($payResponse->getResponseEnvelope()->wasSuccessful() && $validator->ValidateForm())
{
header(“Location: ” . $api->getForwardPayUrl($payResponse));
}

}
?>