Yii import autorize.net供应商

时间:2016-02-04 10:37:51

标签: yii autoload authorize.net

我是Yii的新人。 我的项目已经实施了支付系统(autorize.net)

这就是我所拥有的。

在配置文件

$details  = new AuthorizeNetTD;

在此之后,我可以像这样使用它

Yii::import("application.vendor.authorize.lib.net.authorize.api.contract.v1.NameAndAddressType", true);
Yii::import("application.vendor.authorize.lib.net.authorize.api.contract.v1.CreditCardSimpleType", true);
Yii::import("application.vendor.authorize.lib.net.authorize.api.contract.v1.CreditCardType", true);
Yii::import("application.vendor.authorize.lib.net.authorize.api.contract.v1.CustomerAddressType", true);
Yii::import("application.vendor.authorize.lib.net.authorize.api.contract.v1.CustomerDataType", true);
Yii::import("application.vendor.authorize.lib.net.authorize.api.contract.v1.CustomerType", true);
Yii::import("application.vendor.authorize.lib.net.authorize.api.contract.v1.DriversLicenseType", true);
Yii::import("application.vendor.authorize.lib.net.authorize.api.contract.v1.OrderType", true);
Yii::import("application.vendor.authorize.lib.net.authorize.api.contract.v1.MerchantAuthenticationType", true);
Yii::import("application.vendor.authorize.lib.net.authorize.api.contract.v1.PaymentType", true);
Yii::import("application.vendor.authorize.lib.net.authorize.api.contract.v1.TransactionRequestType", true);

现在我需要使用this功能。 我试图调用所有需要的文件

array(7) {
  ["code"]=>
  int(500)
  ["type"]=>
  string(11) "PHP warning"
  ["message"]=>
  string(89) "include(MerchantAuthenticationType.php): failed to open stream: No such file or directory"
  ["file"]=>
  string(57) "D:\xampp\htdocs\satellitedirect\yii\framework\YiiBase.php"
  ["line"]=>

目录结构类似于this

但它不起作用。我有这样的错误

data-source

如何在Yii中使用Autorize.net SDK自动加载器,我不需要分别调用文件。

0 个答案:

没有答案