示例#1
0
文件: ogone.php 项目: nursit/bank
/**
 * Determiner l'URL d'appel serveur en fonction de la config
 *
 * @param array $config
 * @return string
 */
function ogone_url_serveur($config)
{
    if (ogone_is_sandbox($config)) {
        return "https://secure.ogone.com/ncol/test/orderstandard.asp";
    }
    return "https://secure.ogone.com/ncol/prod/orderstandard.asp";
}
示例#2
0
文件: acte.php 项目: nursit/bank
/**
 * @param array $config
 * @param int $id_transaction
 * @param string $transaction_hash
 * @param array $options
 * @return array|string
 */
function presta_ogone_payer_acte_dist($config, $id_transaction, $transaction_hash, $options = array())
{
    $call_request = charger_fonction('request', 'presta/ogone/call');
    $contexte = $call_request($id_transaction, $transaction_hash, $config);
    $contexte['sandbox'] = ogone_is_sandbox($config) ? ' ' : '';
    $contexte = array_merge($options, $contexte);
    $forms = recuperer_fond('presta/ogone/payer/acte', $contexte);
    $forms = ogone_form_sha_in($forms, $config);
    return $forms;
}