Code Monkey home page Code Monkey logo

Comments (6)

Adam23Yuan avatar Adam23Yuan commented on July 18, 2024

screenshot_2016-07-08-18-19-40_com eg android ali

from cordova-plugin-alipay.

MinionsDave avatar MinionsDave commented on July 18, 2024

楼上可以把error.resultStatus alert出来看下。

我也遇到了这儿问题
errorResult是
{ resultStatus: 6001, result: '', memo: '操作已经取消' }
我的cordova版本是6.0.0
测试手机的安卓版本是6.0.1 MMB29M
我用的是自动安装的方式
请问里面的[你的pid]这个[]要保留吗?
我最后生成的plugin.xml是这样的
`

AlipayPlugin
MIT license
支付宝支付插件,alipay payment
alipay, payment
https://github.com/charleyw/cordova-plugin-alipay
https://github.com/charleyw/cordova-plugin-alipay/issues

<config-file target="AndroidManifest.xml" parent="/manifest/application">
  <!-- alipay sdk begin -->
  <activity android:name="com.alipay.sdk.app.H5PayActivity"
    android:configChanges="orientation|keyboardHidden|navigation"
    android:exported="false" android:screenOrientation="behind"
    android:windowSoftInputMode="adjustResize|stateHidden">
  </activity>
  <!-- alipay sdk end -->
</config-file>

<config-file target="AndroidManifest.xml" parent="/manifest">
  <uses-permission android:name="android.permission.INTERNET" />
  <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
  <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
  <uses-permission android:name="android.permission.READ_PHONE_STATE" />
  <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
</config-file>

<source-file src="src/android/libs/alipaySDK-20150724.jar" target-dir="libs"/>

<source-file src="src/android/AliPayPlugin.java" target-dir="src/wang/imchao/plugin/alipay"/>
<source-file src="src/android/PayResult.java" target-dir="src/wang/imchao/plugin/alipay"/>
<source-file src="src/android/Base64.java" target-dir="src/wang/imchao/plugin/alipay"/>
<source-file src="src/android/SignUtils.java" target-dir="src/wang/imchao/plugin/alipay"/>
<config-file target="*-Info.plist" parent="CFBundleURLTypes">
  <array>
      <dict>
          <key>CFBundleURLName</key>
          <string>alipay</string>
          <key>CFBundleURLSchemes</key>
          <array>
              <string>a$PARTNER_ID</string>
          </array>
      </dict>
  </array>
</config-file>

<framework src="CoreTelephony.framework" weak="true" />
<framework src="Security.framework" weak="true" />
<framework src="SystemConfiguration.framework" weak="true" />

<framework src="src/ios/lib/AlipaySDK.framework" custom="true" />
<framework src="src/ios/lib/openssl.framework" custom="true" />

<header-file src="src/ios/AlipayPlugin.h"/>
<source-file src="src/ios/AlipayPlugin.m"/>

<header-file src="src/ios/Order.h"/>
<source-file src="src/ios/Order.m"/>

<header-file src="src/ios/Util/DataSigner.h"/>
<header-file src="src/ios/Util/NSDataEx.h"/>
<header-file src="src/ios/Util/RSADataSigner.h"/>
<header-file src="src/ios/Util/openssl_wrapper.h"/>

<source-file src="src/ios/Util/DataSigner.m"/>
<source-file src="src/ios/Util/NSDataEx.m"/>
<source-file src="src/ios/Util/RSADataSigner.m"/>
<source-file src="src/ios/Util/openssl_wrapper.m"/>
`

请问是不是我的操作出现错误了?

from cordova-plugin-alipay.

charleyw avatar charleyw commented on July 18, 2024

@MinionsDave [] 不需要的。

from cordova-plugin-alipay.

MinionsDave avatar MinionsDave commented on July 18, 2024

是我支付宝账号填错了,必须是商户的支付宝账号。一样有这个错误的话可以看一下。

from cordova-plugin-alipay.

cxpyear avatar cxpyear commented on July 18, 2024

@charleyw 你好,我用支付宝的工具验证了一下 密钥和公钥是能对应上的 但是还是报这个错误 请问下该怎么办啊

from cordova-plugin-alipay.

charleyw avatar charleyw commented on July 18, 2024

@cxpyear 建议你按照这个文档再检查一下:https://doc.open.alipay.com/support/hotProblemDetail.htm?spm=a219a.7386797.0.0.XVUsZJ&id=242396

from cordova-plugin-alipay.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.