Skip to content

Commit

Permalink
Setting management URL
Browse files Browse the repository at this point in the history
  • Loading branch information
NachoSoto committed Mar 23, 2023
1 parent 8dd1506 commit 72033e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ extension CustomerInfo {
) {
let subscriber = CustomerInfoResponse.Subscriber(
originalAppUserId: userID,
managementUrl: nil,
managementUrl: Self.defaultManagementURL,
originalApplicationVersion: SystemInfo.buildVersion,
originalPurchaseDate: Date(),
firstSeen: Date(),
Expand Down Expand Up @@ -66,4 +66,6 @@ extension CustomerInfo {
/// Purchases are verified with StoreKit 2.
private static let verification: VerificationResult = .verified

static let defaultManagementURL = URL(string: "https://apps.apple.com/account/subscriptions")!

}
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ private extension CustomerInfoOfflineEntitlementsStoreKitTest {

func verifyInfo(_ info: CustomerInfo) {
expect(info.firstSeen).to(beCloseToNow())
expect(info.managementURL).to(beNil())
expect(info.managementURL) == CustomerInfo.defaultManagementURL
expect(info.originalAppUserId).toNot(beEmpty())
expect(info.originalAppUserId) == Self.userID
expect(info.originalApplicationVersion) == SystemInfo.buildVersion
Expand Down

0 comments on commit 72033e0

Please sign in to comment.