代码之家  ›  专栏  ›  技术社区  ›  Wils

使用v3 js API将支付宝分条上线

  •  0
  • Wils  · 技术社区  · 7 年前

    试图用Stripe向支付宝收费,但它一直报告此错误消息。我可以在条纹面板中看到支付宝选项是绿色的。有没有人有过类似的经验和解决方案?

    <script src="https://js.stripe.com/v3/"></script>
    
    // Create a Stripe client
    var stripe = Stripe('<?php echo $stripe['publishable_key'];?>');
    
    stripe.createSource({
      type: 'alipay',
      amount: 1099,
      currency: 'usd',
      redirect: {
        return_url: 'var_dump.php',
      },
    }).then(function(result) {
      window.location=result.source.redirect.url;
    });
    
    
    </script>
    

    api中的控制台错误。条纹com/v1

    {
      "error": {
        "type": "invalid_request_error",
        "message": "Your Alipay onboarding is still pending review, so you can only create testmode Alipay sources. Please try again later or contact support@stripe.com with any questions.",
        "code": "pbl_pending"
      }
    }
    
    1 回复  |  直到 7 年前
        1
  •  0
  •   postmoderngres    7 年前

    出现此错误的一个常见原因是,如果您有多个条带帐户,并且您使用的API密钥不适用于获准接受支付宝付款的同一帐户。

    如果您的API密钥针对的是正确的帐户,那么您需要写入支持以对其进行排序。

    推荐文章