구독 정기결제를 구현하는 도중에 라이브러리가 업그레이드 되었다.
즉, 이전에 버전이 4.x.y 에서 5.x.y 가 되었다.
implementation "com.android.billingclient:billing:5.0.0"
이로 인해, deprecated 된 메서드가 많다.
https://developer.android.com/google/play/billing/migrate-gpblv5
겸사 겸사 현재 개발중인 인앱결제 부분을 마이그레이션 하기로 했다.
기 개발된 코드를 변경하는게 쉽지는 않지만, codeLab과 깃허브에 샘플 코드가 잘 작성되어 있으니 참고해서 개발한다면 큰 무리 없이 개발할 수 있을 것으로 예상된다.
코드랩
https://codelabs.developers.google.com/play-billing-codelab?hl=ko#0
구글 인앱결제 샘플코드
https://github.com/android/play-billing-samples/tree/main/PlayBillingCodelab
'개발 > 안드로이드' 카테고리의 다른 글
구글 개발자 계정의 결제 프로필 문제 (0) | 2022.12.05 |
---|---|
Firebase DynamicLink 오류(삼성브라우저에서) (0) | 2022.06.28 |
Google Play Developer API 실시간 개발자 알림 구현 (0) | 2022.06.07 |
[오류] SDK 31 에서 PendingIntent 이슈 (0) | 2022.03.03 |
[오류] firebaseinstanceid: token retrieval failed: service_not_available. will retry token retrieval (0) | 2022.02.22 |