• 카테고리

    질문 & 답변
  • 세부 분야

    풀스택

  • 해결 여부

    해결됨

Paypal 버튼 오류

22.08.08 22:05 작성 조회수 263

0

강사님 강의를 따라하던 중 먼저 커뮤니티의 다른 분 같이 하나의 비지니스 계정만 뜨는 상황을 겪었습니다.

 

그 분이 진행했던 대로, 저 또한 그 비지니스 계정으로 app을 만들었고 sandbox에 ID값을 바꿔주었습니다. 하지만 그렇게 하면 바로 로그인 창이 뜨던 강사님과 달리 여전히 로그인 창이 뜨지 않는 오류를 겪었습니다.

 

 

checkout.js:1664          POST https://www.sandbox.paypal.com/v1/payment-experience/web-profiles 401
(익명) @ checkout.js:1664
ZalgoPromise @ checkout.js:941
request @ checkout.js:1603
(익명) @ checkout.js:17462
_proto.dispatch @ checkout.js:1016
_proto.resolve @ checkout.js:968
_proto.dispatch @ checkout.js:1036
_proto.resolve @ checkout.js:968
(익명) @ checkout.js:942
(익명) @ checkout.js:1649
load(비동기)
(익명) @ checkout.js:1620
ZalgoPromise @ checkout.js:941
request @ checkout.js:1603
(익명) @ checkout.js:17437
(익명) @ checkout.js:6074
(익명) @ checkout.js:17461
(익명) @ checkout.js:6074
(익명) @ checkout.js:17513
ZalgoPromise.try @ checkout.js:1169
(익명) @ checkout.js:17512
_proto.dispatch @ checkout.js:1016
_proto.resolve @ checkout.js:968
_proto.dispatch @ checkout.js:1036
_proto.resolve @ checkout.js:968
(익명) @ checkout.js:942
(익명) @ checkout.js:1649
load(비동기)
(익명) @ checkout.js:1620
ZalgoPromise @ checkout.js:941
request @ checkout.js:1603
(익명) @ checkout.js:17437
(익명) @ checkout.js:6074
createPayment @ checkout.js:17511
(익명) @ checkout.js:7031
ZalgoPromise.try @ checkout.js:1169
(익명) @ checkout.js:7030
(익명) @ checkout.js:6454
ZalgoPromise.try @ checkout.js:1169
_RECEIVE_MESSAGE_TYPE.<computed> @ checkout.js:6451
receiveMessage @ checkout.js:6520
messageListener @ checkout.js:6542
checkout.js:2088 ppxo_unhandled_error {stack: 'Error: Request to post https://www.sandbox.paypal.…s://www.paypalobjects.com/api/checkout.js:6542:9)', errtype: '[object Error]', timestamp: 1659963784699, windowID: '2526aef124', pageID: '107942d234', …}
print @ checkout.js:2088
log @ checkout.js:2181
error @ checkout.js:2217
(익명) @ checkout.js:25295
(익명) @ checkout.js:988
(익명) @ checkout.js:990
setTimeout(비동기)
_proto.reject @ checkout.js:981
_proto.dispatch @ checkout.js:1022
_proto.reject @ checkout.js:992
_proto.dispatch @ checkout.js:1022
_proto.reject @ checkout.js:992
_proto.dispatch @ checkout.js:1028
_proto.reject @ checkout.js:992
(익명) @ checkout.js:1009
_proto.dispatch @ checkout.js:1026
_proto.reject @ checkout.js:992
(익명) @ checkout.js:947
respond @ checkout.js:6597
_RECEIVE_MESSAGE_TYPE.<computed> @ checkout.js:6486
receiveMessage @ checkout.js:6520
messageListener @ checkout.js:6542
checkout.js:6484 Uncaught Error: Request to post https://www.sandbox.paypal.com/v1/payment-experience/web-profiles failed with 401 error. Correlation id: 5a6ac701472aa

{
    "name": "AUTHENTICATION_FAILURE",
    "debug_id": "5a6ac701472aa",
    "message": "Authentication failed due to invalid authentication credentials or a missing Authorization header",
    "information_link": "https://developer.paypal.com/docs/api/payment-experience/#errors",
    "details": []
}

    at XMLHttpRequest.<anonymous> (checkout.js:1647:35)
    at _RECEIVE_MESSAGE_TYPE.<computed> [as postrobot_message_response] (checkout.js:6484:27)
    at receiveMessage (checkout.js:6520:60)
    at messageListener (checkout.js:6542:9)
    at _RECEIVE_MESSAGE_TYPE.<computed> [as postrobot_message_response] (checkout.js:6484:27)
    at receiveMessage (checkout.js:6520:60)
    at messageListener (checkout.js:6542:9)
_RECEIVE_MESSAGE_TYPE.<computed> @ checkout.js:6484
receiveMessage @ checkout.js:6520
messageListener @ checkout.js:6542
setTimeout(비동기)
(익명) @ checkout.js:985
(익명) @ checkout.js:990
setTimeout(비동기)
_proto.reject @ checkout.js:981
_proto.dispatch @ checkout.js:1022
_proto.reject @ checkout.js:992
_proto.dispatch @ checkout.js:1022
_proto.reject @ checkout.js:992
_proto.dispatch @ checkout.js:1028
_proto.reject @ checkout.js:992
(익명) @ checkout.js:1009
_proto.dispatch @ checkout.js:1026
_proto.reject @ checkout.js:992
(익명) @ checkout.js:947
respond @ checkout.js:6597
_RECEIVE_MESSAGE_TYPE.<computed> @ checkout.js:6486
receiveMessage @ checkout.js:6520
messageListener @ checkout.js:6542
checkout.js:7123 Uncaught Error: Error: Request to post https://www.sandbox.paypal.com/v1/payment-experience/web-profiles failed with 401 error. Correlation id: 5a6ac701472aa

{
    "name": "AUTHENTICATION_FAILURE",
    "debug_id": "5a6ac701472aa",
    "message": "Authentication failed due to invalid authentication credentials or a missing Authorization header",
    "information_link": "https://developer.paypal.com/docs/api/payment-experience/#errors",
    "details": []
}

    at XMLHttpRequest.<anonymous> (checkout.js:1647:35)
    at _RECEIVE_MESSAGE_TYPE.<computed> [as postrobot_message_response] (checkout.js:6484:27)
    at receiveMessage (checkout.js:6520:60)
    at messageListener (checkout.js:6542:9)
    at _RECEIVE_MESSAGE_TYPE.<computed> [as postrobot_message_response] (checkout.js:6484:27)
    at receiveMessage (checkout.js:6520:60)
    at messageListener (checkout.js:6542:9)
    at checkout.js:7123:27
    at checkout.js:7126:14
    at checkout.js:6953:26
    at checkout.js:6948:55
    at checkout.js:6949:14
    at replaceObject (checkout.js:6952:10)
    at checkout.js:6954:109
    at checkout.js:6950:69
    at checkout.js:6951:14
    at replaceObject (checkout.js:6952:10)
    at checkout.js:6954:109
    at checkout.js:6950:69
    at checkout.js:6951:14
    at replaceObject (checkout.js:6952:10)
    at deserializeMethods (checkout.js:7119:16)
    at receiveMessage (checkout.js:6519:70)
    at messageListener (checkout.js:6542:9)

 

콘솔창에는 이러한 오류가 떠있었고, 검색해봤지만 해결책을 찾진 못했습니다ㅜ 계속 고민하다 교수님의 github주소에 있는 sandboxID를 입력하니 로그인 창이 떴는데요, 제가 이대로 계속 진행해도 되는지 여쭤보고 싶습니다.

답변 1

답변을 작성해보세요.

1

안녕하세요 ^^ 

아마 ID를 가져오는 데 있어서 다른 것을 가져와서 그럴 수도 있는데 

그 아이디는 테스트를 위한 아이디이기 때문에 제 것을 사용해도 괜찮습니다 ^^ 

수고하세요!!

수진님의 프로필

수진

2022.08.15

안녕하세요 강사님! 저도 같은 오류를 겪어서 일단 강사님이 강의에 사용하신 샌드박스 아이디를 이용해서 강의를 마저 듣고있는데 혹시 배포할때도 문제가 없을까요??