일부 통합업체는 결제 토큰이 만료될 것으로 예상합니다. 이 경우 토큰이 만료에 가까워지면 Google에서 사용자를 다시 인증하고 토큰 만료 기간을 연장합니다. 이를 갱신 토큰 흐름 또는 재연결 흐름이라고 합니다. 이 과정에서 통합업체는 결제 토큰이 만료되는 시점을 Google에 알립니다.
절차의 작동 방식
토큰이 만료되었거나 곧 만료되는 경우 이 절차는 만료일 갱신 절차를 거칩니다.
갱신 토큰 흐름
다음은 위 다이어그램에 표시된 객체 목록입니다.
Google 서버: 캡처 명령어를 결제 통합업체 서버로 전송하는 Google의 백엔드 서버입니다.
결제 통합업체 서버: 자금 캡처 요청을 수락하는 통합업체의 백엔드 서버입니다.
이 흐름에서는 토큰이 만료되었거나 곧 만료될 예정입니다. 작업은 결제 통합업체 서버에서 시작됩니다.
결제 통합업체 서버에서 토큰이 만료되었거나 곧 만료될 예정임을 Google 서버에 알립니다.
Google 서버는 결제 통합업체 서버에 refreshToken 메시지를 보냅니다. 여기에는 인증 증빙 자료로 authenticationRequestId 및 GPT가 포함됩니다.
결제 통합업체 서버가 토큰을 새로운 만료일로 새로고침합니다. 이는 원래 토큰이 만료되었는지 여부와 관계없이 발생할 수 있습니다.
All rights reserved. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-25(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-07-25(UTC)"],[],["The Payment Integrator Server informs the Google Server when a payment token expires or is near expiry. Google then sends a `refreshToken` message, including an `authenticationRequestId` and `GPT`, to the Payment Integrator Server. The Integrator refreshes the token with a new expiry date, which has a minimum lifetime of one year, then confirms the success to Google. The `googlePaymentToken` used in this process is an existing token, not a new one. If token is not known, it returns a `FAILED_PRECONDITION` error message.\n"]]