The following function notifies Appcharge whether the player received the digital goods associated with the purchase:
BridgeAPI.award(
    orderId: String,
    publisherTransactionId: String
)
ArgumentTypeRequiredDescription
orderIdStringYesThe order ID to mark as awarded.
publisherTransactionIdStringNoTransaction ID from the session creation process.
This function triggers the onAward with the awarded argument.
  • If awarded is true, the purchase is marked as awarded, indicating that the player successfully received the digital goods.
  • If awarded is false, the purchase is marked as non-awarded, indicating that the player didn’t receive the digital goods.