问题报告:

1. access http://www.aiyee.org/juan-kuan-10yuan
click 'add to cart'

2. 点击checkout.

3. 输入任意信息完成billing address,点击 review order

4. 点击“提交定单”

5. 得到支付宝错误
错误代码 ILLEGAL_PARTNER_EXTERFACE

排错:

- 再三检查了合作者号和校验码没有错。
- 确认了已经开通商户服务,并且类型是即时到帐(所附快照为证)。同时确认了所下载的uc_alipay是即时到帐类型(您自己写的:“Drupal7版的uc_alipay,用的是支付宝的即时支付接口,”
- Google搜索过 'uc_alipay ILLEGAL_PARTNER_EXTERFACE',没有有用的信息,所以我相信我是第一个遇到此问题的人,就是说可能遇到bug了,所以和你联系。

存疑:

1. 我收到的校验码上写着“默认加密方式”,但是uc_alipay上仅有“校验码”,没有提供加密方式的信息,是否支付宝已经要求加密校验码而uc_alipay没有跟进更新?

2. 我的“帐户相关信息”里“网址”一处填写的网址并非安装 uc_alipay网站的网址。这是因为组织和项目的网站不同。会不会支付宝要求检查referral一致?我搜索了一下没有提到网址要求一致的。支付宝FAQ里,对于 ILLEGAL_PARTNER_EXTERFACE 也没有将网址列为原因之一。

CommentFileSizeAuthor
#1 error.png113.03 KBsajal.sadhukhan
alipay.png153.32 KBzhangweiwu

Comments

sajal.sadhukhan’s picture

StatusFileSize
new113.03 KB

Hi
After installing Alipay with ubercart in drupal 7. Iam getting the error [Error code ILLEGAL_PARTNER_EXTERFACE]. I have also set the partner Id and key correctly. Need help.

g089h515r806’s picture

如果你使用的网址,和你申请的网址,不一致的话,有可能用不了。

sajal.sadhukhan’s picture

Found a solution
The Alipay service i am using is for cross-border payment so I need to change the $parameters a little in uc_alipay.module.

$parameter = array(
//"service" => "create_direct_pay_by_user", //this is original line 138
"service" => "create_forex_trade", //changed to create_forex_trade
"partner" => variable_get('uc_alipay_partner', ''),
"return_url" => $base_path.'alipay/return',

"notify_url" => $base_path.'alipay/notify',
"_input_charset" => 'UTF-8', //字符集,默认为GBK
"subject" => t('Ebdens'),
"body" => t('Ebdens'),
"out_trade_no" => date('Ymd').'_'.$order_id,
"total_fee" => $total_fee,
"currency" =>"AUD",
);

But i found Alipay suggest to use AUD other than this currency they redirect to error url . Is there any way out?
You can use RMB or CNY currency. In place of total_fee use rmb_fee

zhangweiwu’s picture

That doesn't solve my case. But I believe the cause is similar.

I believe besides "create_direct_pay_by_user" and "create_forex_trade" there are other services.

The service I applied for is

产品名称:网络小额捐赠(受限)V3

Their help page addressing this particular error message listed several other service but not the one I subscribed to.

http://help.alipay.com/support/help_detail.htm?help_id=243730&sh=Y&tab=n...
-支付宝即时到账
-支付宝担保交易
-支付宝双功能
-支付宝批量付款到支付宝账号

None of them are what I have subscribed to.

Sajal Sadhukhan: I noticed none of the listed items map to the service you subscribe to neither, so where did you find this "create_forex_trade" service code? From which document? That same source may give mine service code too.

zhangweiwu’s picture

> 如果你使用的网址,和你申请的网址,不一致的话,有可能用不了。

已经做成一样的了,反复检查没有拼写错误,所申请的网址正是所使用的网址,仍然用不了。我猜了一个原因,就是楼上英文贴所说的,不知道会不会是正解。你觉得呢?

g089h515r806’s picture

有的人用的是支付宝的全球账号,需要像#3这样的修改一下。

zhangweiwu’s picture

> 有的人用的是支付宝的全球账号,需要像#3这样的修改一下。

我的问题仍然存在,问题描述见首贴。
我自己排错如下:

- 再三检查了合作者号和校验码没有错。

- 确认了我使用的不是全球帐号,是中国国内的帐号。

- 确认向支付宝所申请此项功能的网址和实际支付时的网站是同一个。

- 确认了已经开通商户服务,并且类型是即时到帐(所附快照为证)。同时确认了所下载的uc_alipay是即时到帐类型(您自己写的:“Drupal7版的uc_alipay,用的是支付宝的即时支付接口,”

g089h515r806’s picture

你的账号类型是 即时支付,但是所属服务为捐赠服务,我把对应的代码调整了一下,改为了捐赠,
"service" => "create_donate_trade_p", //交易类型
经测试,现在可以了。

zhangweiwu’s picture

Status: Active » Fixed

Thanks. The method to fix it is mentioned in g089h515r806's last message, this problem is considered fixed. I will open a separate feature request to ask for 'service' type to be integrated as a configurable option.

Anyone with a problem in this module can hire g089h515r806 for a solution like I did:) He respondes to service requests in time.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.