Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Releases: bootpay/backend-java

v3.1.0 — client_key/secret_key Basic Auth + getReceipt parity

Choose a tag to compare

@rupy1014 rupy1014 released this 14 May 08:14

인증: client_key/secret_key Basic Auth 지원 (PG + Commerce 공통)

기존 application_id/private_key Bearer 방식 하위 호환 유지.

PG

  • `Bootpay.withClientKey(clientKey, secretKey [, devMode])` 팩토리 추가
    • ck/sk 모드에서는 매 요청 자동 Basic Auth 헤더 부착
    • `getAccessToken()` 은 합성 응답을 반환, `request/token` 호출 없음
    • 한쪽만 지정 + legacy 키도 없으면 검증 실패
  • `getReceipt(receiptId, lookupUserData)` 오버로드 추가 — NodeJS `receipt(receiptId, lookupUserData)` 와 parity. 기존 `getReceipt(receiptId)` 는 내부적으로 `lookupUserData=false` 위임

Commerce

  • `BootpayStore` 의 모든 호출이 `tokenPayload` 의 ck/sk 로 Basic Auth 사용
  • `BootpayObject.hasAuth()` / `getBasicAuthValue()` 헬퍼 추가

Deprecations (다음 메이저 버전에서 제거 예정)

  • Wallet API (`requestWalletPayment`, `WalletPayment`)
  • `ResDefault.http_status`, `BootpayStoreResponse.getHttpStatus()` — 성공 여부는 `error_code == 0` / `isSuccess()` 사용

응답 파싱 견고성 개선

  • `responseToJsonArray` — 서버가 객체로 답해도 그대로 노출 (e.g. lookup/order 오류 응답)
  • `responseToJson` — 서버가 배열로 답해도 `data` 로 wrapping (e.g. wallet 목록)
  • `STokenService` — 응답 스트림 1회 read 로 통합 (이중 read 시 closed-stream 예외 수정)

테스트 인프라

  • `.env` / `BOOTPAY_AUTH_MODE=new|legacy` / `BOOTPAY_ENV` 토글로 ck/sk · legacy 양쪽 검증
  • 테스트 디렉터리 `pg/`·`commerce/` 분리

설치

```xml

io.github.bootpay
backend
3.1.0

```

Maven Central: https://central.sonatype.com/artifact/io.github.bootpay/backend/3.1.0

v2 api 적용 후 jdk 8로 빌드 후 배포

Choose a tag to compare

@bootpay bootpay released this 26 May 02:15
2.0.1

example update

data response format이 대부분 hashmap으로 수정되었습니다.

Choose a tag to compare

@bootpay bootpay released this 04 Nov 02:21
1.0.9

- data response format이 대부분 hashmap으로 수정되었습니다.

subscribe payload model changed

Choose a tag to compare

@bootpay bootpay released this 08 Sep 23:57
1.0.8

subscribe payload model changed

Extra 모델 수정

Choose a tag to compare

@bootpay bootpay released this 08 Sep 10:38
1.0.7

extra 모델changed

모델별 주석 추가

Choose a tag to compare

@bootpay bootpay released this 08 Sep 10:12
1.0.6

changelog.md added

certificate Accept type change to application/json

Choose a tag to compare

@bootpay bootpay released this 06 Sep 08:06
1.0.5

certificate type changed to json/application

certificate data changed

Choose a tag to compare

@bootpay bootpay released this 06 Sep 07:49
1.0.4

certificate data changed

response data update

Choose a tag to compare

@bootpay bootpay released this 03 Sep 07:01
1.0.3

response data update

rename group

Choose a tag to compare

@bootpay bootpay released this 03 Sep 02:18

rename group

Morty Proxy This is a proxified and sanitized view of the page, visit original site.