Gamend.Payments.StoreEvents (gamend_core v1.0.1296)

Copy Markdown View Source

Apple App Store and Google Play server notifications: verifying them, recording them once, and applying what they say to purchases and entitlements.

Split out of Gamend.Payments, which still exposes every function here under the same name.

Summary

Functions

handle_apple_webhook(raw_body)

@spec handle_apple_webhook(binary()) :: {:ok, atom()} | {:error, term()}

handle_google_webhook(raw_body, authorization_header)

@spec handle_google_webhook(binary(), binary() | nil) ::
  {:ok, atom()} | {:error, term()}