You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// finalizeOrder(payload) will complete the purchase flow.
117
119
// The payload argument here is provided in the PaymentEvent.Context.PROCESSING_ORDER - SUCCESS event (see below example for detailed usage).
118
-
finalizeOrder(payload)
120
+
// Pass true to consume the order, or false to leave it as is.
121
+
// Example: don't consume the order if you want to restore it later, like if the user buys a one time item to remove ads from the app permanently. Consuming allows him to buy it again
122
+
finalizeOrder(payload, true)
119
123
120
124
// at this point you would process the order with your backend given the receiptToken from the purchase flow
0 commit comments