Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PID和密匙在哪里设置 #55

Open
zhang988925 opened this issue Sep 23, 2016 · 4 comments
Open

PID和密匙在哪里设置 #55

zhang988925 opened this issue Sep 23, 2016 · 4 comments

Comments

@zhang988925
Copy link

@charleyw 您好:
PARTNER_ID这个指的是:账户及密钥管理->合作伙伴密钥->合作伙伴身份(PID)
PRIVATE_KEY这个指的是:账户及密钥管理->合作伙伴密钥->RSA(SHA1)密钥
是这样吗?我现在出现:交易订单处理失败,请稍后重试。(ALI59)

@charleyw
Copy link
Owner

可以参考这个issue: #30
因为到这里,插件基本应该是尝试去调支付宝了,说明插件的事情基本完了。
我建议去检查一下支付宝的配置,公钥私钥,支付宝后端配置等。

建议去下载支付宝官方的例子,把配置改成自己的,测试一下看能支付不,这样可以确认是不是支付宝配置不正确。

@zhang988925
Copy link
Author

zhang988925 commented Sep 23, 2016

您好,我测试一下官方给的demo是可以支付的,我打印了请求参数和官方的也一样
partner="2088421801134208"&seller_id="qlqwfl@163.com"&out_trade_no="222222"&subject="商家充值"&body="钱来钱往"&total_fee="0.01"&notify_url="http://develop.weiyuntop.com/payment/alipay/notify_url.php"&service="mobile.securitypay.pay"&payment_type="1"&_input_charset="utf-8"&it_b_pay="30m"&sign="N6zHdGMK6p%2BQp%2BBiHPphzwCISyS6GsdYX6vFmz88TqUf8slCLQefZHVesXwG3ckWSfxvJKix%2Fb%2BmWoc4WG96S4TCxkFxJJ6cq0jsTy1XxLQ5tDQR224b44I4TRjdVAkHP9rg8vBPnk6FEGahgT2lhiowv9ept4veVimLkmcVmcE%3D"&sign_type="RSA"
但是还是ALI59,这个问题折磨我一天了,太难受了

@charleyw
Copy link
Owner

找一下这个文件:[项目根目录]/platforms/ios/[你的工程名字]/config.xml (这里以iOS为例,android的话把ios替换成android)
在文件里面找一下privatekey, seller, partner这几个参数,看一下值是不是可以你在官方的例子里面配置的一样的。类似下面这种

    <preference name="privatekey" value="MIICdgIBADANBgkqhki......SCAmAw....AJ2yLuDc6lX0UzaaOKb/GC9xIfvpWQ7Tgvk9cWQ2z6ruG5t/M7nUh6hU4yrlhfF1opxWoplglv3w+cpScXWzm0RqzFXyXPMeuen41lzZzBgrvkl9kqhJSFAACQ/A/.............." />

么有的话,说明安装的时候可能出错了。

@zhang988925
Copy link
Author

非常感谢你的答复,我找到问题,非常抱歉麻烦你了,是我的错误,输入法开启了全角符号输入的邮箱符号错误&seller_id="qlqwfl@163.com,@符号错误

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants