LoginSignup
1
0

More than 5 years have passed since last update.

マーチャントバリデーションのsession.onvalidatemerchantのURLが名前解決できない時

Posted at

ベータ版のiOS使ってませんか?w
curlError: "Couldn't resolve host 'apple-pay-gateway-sh-pod1.apple.com'"

リリース版で試すと名前解決できるURLが返って来ますよ。
validationURL: "https://apple-pay-gateway-pr-pod2.apple.com/paymentservices/startSession"

謎なのはベータ版でもiPadは正しいURLなんですよね。。

おまけ
XMLHttpRequestでサーバサイドにPOSTする前にキャッシュ消したほうが幸せになれます。

xhr.open('GET', 'apple_pay_comm.php?u=' + valURL);

xhr.setRequestHeader('Pragma', 'no-cache'); 
xhr.setRequestHeader('Cache-Control', 'no-cache'); 
xhr.setRequestHeader('If-Modified-Since', 'Thu, 01 Jun 1970 00:00:00 GMT'); 

xhr.send();

しかしApple Payの情報少なすぎ

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0