谁帮忙看一下这个插件怎么处理?

couser   ·   发表于 2016-10-8   ·   插件开发

秘钥:887c5a2b0d1bcf5b169ac8d63806bd13

项目ID:88709

开发文档:https://developers.paysera.com/en/payments/current

测试文档使用说明:

  1. <?php
  2.  
  3. require_once('WebToPay.php');
  4.  
  5. function get_self_url() {
  6. $s = substr(strtolower($_SERVER['SERVER_PROTOCOL']), 0,
  7. strpos($_SERVER['SERVER_PROTOCOL'], '/'));
  8.  
  9. if (!empty($_SERVER["HTTPS"])) {
  10. $s .= ($_SERVER["HTTPS"] == "on") ? "s" : "";
  11. }
  12.  
  13. $s .= '://'.$_SERVER['HTTP_HOST'];
  14.  
  15. if (!empty($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] != '80') {
  16. $s .= ':'.$_SERVER['SERVER_PORT'];
  17. }
  18.  
  19. $s .= dirname($_SERVER['SCRIPT_NAME']);
  20.  
  21. return $s;
  22. }
  23.  
  24. try {
  25. $self_url = get_self_url();
  26.  
  27. $request = WebToPay::redirectToPayment(array(
  28. 'projectid' => 88709, //项目ID
  29. 'sign_password' => '887c5a2b0d1bcf5b169ac8d63806bd13',  //秘钥签名
  30. 'orderid' => 0,
  31. 'amount' => 1000,
  32. 'currency' => 'EUR',
  33. 'country' => 'LT',
  34. 'accepturl' => $self_url.'/accept.php',
  35. 'cancelurl' => $self_url.'/cancel.php',
  36. 'callbackurl' => $self_url.'/callback.php',
  37. 'test' => 0,
  38. ));
  39. } catch (WebToPayException $e) {
  40. // handle exception
  41. }

一个不错的外币收款通道,谁能给看一下,怎么可以集成到HUBBS里面了~!

附件列表

support-button-1-6.zip   文件大小:0.014M (下载次数:11)

0 条回复   |  直到 2016-10-8 | 1481 次浏览
登录后才可发表内容

HYBBS © 2016. All Rights Reserved. HYBBS

Powered by HYBBS Version 2.1.3