【问题标题】:apple pay - sslv3 alert handshake failure苹果支付 - sslv3 警报握手失败
【发布时间】:2021-02-20 14:10:38
【问题描述】:

我刚开始使用applepay, 我正在尝试在本地机器上进行开发,我定义了一个商家 ID、标识符,并在我的苹果开发者帐户中全部标记为已验证

我使用 ngrok 能够从外部访问我的机器 - 我能够访问此文件 .well-known/apple-developer-merchantid-domain-association.txt

但是当我使用这个请求时: curl https://apple-pay-gateway.apple.com/paymentservices/paymentSession -d 'const options= { 网址:“支付会话网址”, 证书:“./applepay.cer”, 键:“./merchantid.cer”, 方法:'发布', 身体:{ 商家标识符:“merchant.myDomin.com”, 显示名称:“myDomin”, 倡议:“网络”, 倡议上下文:“myDomin.myDomin.com” }, json:是的, }' 我得到错误: EPROTO 4517103040:error:14094410:SSL routines:ssl3readbytes:sslv3 alert handshake failure:../deps/openssl/openssl/ssl/s3_pkt.c:1494:SSL alert number 40

我做错了什么? (在流程中显示苹果支付弹出窗口,我在 session.onvalidatemerchant 事件中失败

【问题讨论】:

    标签: applepay applepayjs


    【解决方案1】:
    curl -XPOST -H "Content-type: application/json" -d '{"merchantIdentifier":"merchant.***.xxxxx","displayName":"Test 
    Pay","initiative":"web","initiativeContext":"***-***-xxxxxx.xxxxxxxxxx.xx"}' --cert cert.pem:cert.pem 
    'https://apple-pay-gateway-cert.apple.com/paymentservices/startSession'
    

    这是我用来从苹果支付服务器获取会话的有效 curl 请求。

    https://developer.apple.com/documentation/apple_pay_on_the_web/setting_up_your_server

    请检查是否满足所有服务器要求。与 node.js 一样,您需要指定最低 TLS 版本。 (在我的情况下,我是根据请求完成的)。

    参考我的代码:Unable to get any response from the apple pay - This resource came from a local override

    如果您已填写所有服务器要求问题,则应使用您的商家身份证书。

    讨论-https://developer.apple.com/forums/thread/679789?login=true&page=1#674694022

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-10-10
      • 1970-01-01
      • 2016-07-03
      • 2015-12-06
      • 1970-01-01
      • 1970-01-01
      • 2023-03-14
      相关资源
      最近更新 更多