将codeigniter REST Api与Payu支付网关集成

时间:2015-03-26 07:16:51

标签: php codeigniter payu

使用codeigniter购物车,我们从PayU india购买了支付网关。我可以在普通的php中使用下面的代码集成这个网关。

pay_page( array ('key' => 'gtKFFx', 'txnid' => uniqid( 'animesh_' ), 'amount' => rand( 0, 100 ),
            'firstname' => 'Test', 'email' => 'test@payu.in', 'phone' => '98765433210',
            'productinfo' => 'Product Info', 'surl' => 'payment_success', 'furl' => 'payment_failure'), 
            'eCwWELxi' );

在我的php控制器中包含了payu帮助程序并编写了上面的代码,但错误就像(我需要将我的应用程序重定向到payu屏幕,重定向有问题)

  XMLHttpRequest cannot load https://test.payu.in/_payment_options?mihpayid=3690c101118c75fb7d0ca8e75cf19e5e81c4d2b99fbb9da371f70d2f01273bdf. 
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:90' is therefore not allowed access.

0 个答案:

没有答案
相关问题