charleyw/cordova-plugin-alipay

Xcode7.3.1如何设置支付宝返回URL

Closed this issue · 3 comments

具体如何填写才能让支付宝支付完成跳回原来APP

插件会自动设置,详见plugin.xml 76行,会使用你的填写的PARTNER_ID和一个字母『a』前缀组成的字符串(因为纯数字scheme的貌似不能通过AppStore审核)

    <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>

要修改CFBundleURLName、CFBundleURLSchemes、$PARTNER_ID这3个嘛

OK,解决了,3q,修改了$PARTNER_ID