verify purchase

This block is part of the Apple API group and was last modified in core v13.0.8.

verify purchase v13.0.8

Verifies the given transaction based on the apple app store server json web token

In pins 4 + flow
  • flow
  • bundle id value required

    the apps bundle id

  • token value required

    the token to be verified

  • environment value

    Should be PRODUCTION or SANDBOX

    Default SANDBOX

  • app apple id value

    Is required if environment is set to production

Out pins 5 + flow
  • flow
  • success condition
  • error value
  • environment value
  • verified condition
  • payload object

Decodes the Apple signed-transaction JWS payload and returns it on payload with success and verified set true : NO cryptographic signature verification is performed, so verified=true means only that the token decoded. An empty bundleid or token fails with error MISSING_BUNDLE_ID / MISSING_TOKEN; the environment output is "Production" only when the environment input equals PRODUCTION (case-insensitive), otherwise "Sandbox". The app_apple_id input is accepted but never read.

A typical wiring for verify purchase: a function trigger starts the flow; value feeds the bundleid pin; value feeds the token pin; the flow out pin feeds debug.

Studio canvas example for the verify purchase block: typical wiring for verify purchase.

Version history

Introduced in v13.0.8.


Back to Apple API Return to the main group to view all sub-groups Back to transactions Return to the group to view all blocks within this group