Skip to content

Commit

Permalink
Merge pull request #22 from zjinpeng/fixLookupOrderStatus
Browse files Browse the repository at this point in the history
Fix lookupOrder response status
  • Loading branch information
agisboye authored Feb 22, 2023
2 parents eeab214 + 16a2f67 commit d774291
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ import { OrderLookupStatus } from "app-store-server-api"

const response = await api.lookupOrder(orderId)

if (response.orderLookupStatus === OrderLookupStatus.Valid) {
if (response.status === OrderLookupStatus.Valid) {
const transactions = await decodeTransactions(response.signedTransactions)
/// ...
}
Expand Down
2 changes: 1 addition & 1 deletion src/Models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export enum PriceIncreaseStatus {

// https://developer.apple.com/documentation/appstoreserverapi/orderlookupresponse
export interface OrderLookupResponse {
orderLookupStatus: OrderLookupStatus
status: OrderLookupStatus
signedTransactions: JWSTransaction[]
}

Expand Down

0 comments on commit d774291

Please sign in to comment.