Интеграция платежного шлюза Skrill в codeingiter

Привет, я хочу интегрировать платежный шлюз skrill в codeingiuter со вчерашнего дня и застрял с ошибкой, показанной ниже на изображении. также поместите код ниже. В контроллере, когда я ввожу свой собственный адрес электронной почты, они показывают мне сообщение об ошибке: «Неверное сообщение». и когда я помещаю демонстрационное электронное письмо из документации Skrill, они показывают мне сообщение об ошибке, показанное на изображении ниже. введите описание изображения здесь

Здесь мой код контроллера:

      <?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Skrill {
    //new array
    var $config = Array();
    //skrill url
    var $production_url = 'https://www.moneybookers.com/app/payment.pl?';

    // function construct 
    public function __construct($value = array()) {
        $this->__initialize($value);

    }

    //function init
    function __initialize($value = array()) {
        $config ['pay_to_email'] = 'demoqco@sun-fish.com';
        $config ['status_url'] = 'https://example.com/
process_payment.cgi';
        $config ['language'] = 'EN';
        $config ['return_url_text'] = 'Return to Domain';
        $config ['logo_url'] = 'http://www.moneybookers.com/images/logos/checkout_logos/checkout_240x80px.gif';
        $config ['return_url'] = '';
        $config ['cancel_url'] = '';
        $config ['detail1_description'] = '';
        
        //$config array to class variable
        if (count($props) > 0) {
            foreach ($props as $key => $val) {
                $config[$key] = $val;
            }
        }
        $this->config = $config;
    }
    //function pay 
    function pay() {
        $vars = http_build_query($this->config);
        //header function built url
           header('LOCATION:' . $this->production_url . $vars);    
    }
}
?>

А вот и библиотека

      <?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Payment extends CI_Controller {

    public function __construct() {
        parent::__construct();
    }

    public function index() {
        $config ['detail1_text'] = 'My Services'; //Text about your services
        $config ['amount'] = 10; // get post values
        $this->load->library('skrill', $config);
        $this->skrill->pay();
    }
}

Помощь будет оценена. Спасибо

0 ответов

Другие вопросы по тегам