秘钥:887c5a2b0d1bcf5b169ac8d63806bd13
项目ID:88709
开发文档:https://developers.paysera.com/en/payments/current
测试文档使用说明:
- <?php
- require_once('WebToPay.php');
- function get_self_url() {
- $s = substr(strtolower($_SERVER['SERVER_PROTOCOL']), 0,
- strpos($_SERVER['SERVER_PROTOCOL'], '/'));
- if (!empty($_SERVER["HTTPS"])) {
- $s .= ($_SERVER["HTTPS"] == "on") ? "s" : "";
- }
- $s .= '://'.$_SERVER['HTTP_HOST'];
- if (!empty($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] != '80') {
- $s .= ':'.$_SERVER['SERVER_PORT'];
- }
- $s .= dirname($_SERVER['SCRIPT_NAME']);
- return $s;
- }
- try {
- $self_url = get_self_url();
- $request = WebToPay::redirectToPayment(array(
- 'projectid' => 88709, //项目ID
- 'sign_password' => '887c5a2b0d1bcf5b169ac8d63806bd13', //秘钥签名
- 'orderid' => 0,
- 'amount' => 1000,
- 'currency' => 'EUR',
- 'country' => 'LT',
- 'accepturl' => $self_url.'/accept.php',
- 'cancelurl' => $self_url.'/cancel.php',
- 'callbackurl' => $self_url.'/callback.php',
- 'test' => 0,
- ));
- } catch (WebToPayException $e) {
- // handle exception
- }
一个不错的外币收款通道,谁能给看一下,怎么可以集成到HUBBS里面了~!