BP Function: Get Pledge History
Fetches a user's pledge history. This can be used to check if they were previously pledged to a tier (even if they may have since unsubscribed), find out when they started their subscription to their current tier, etc.
Inputs
-
Token InfoAPI Token InfoThe user's API access token. Usually obtained via oauth.
-
Discard UnpaidBoolIf true, pledge events with invalid payment states (e.g. declined payments) will not be included in the results
-
Campaign IDStringIf not empty, will only process pledge events with a matching campaign ID and discard others
Outputs
-
Main Execution Pin (at the top)
Execution will immediately continue from this pin while the request is processing in the background. Do not use execution flowing from this pin to check for the results, they aren't ready yet!
-
Async ActionThis is a reference to the action running in the background. You can use this to cancel the async action if you decide you actually don't need the results before it has completed.
-
On Complete
When the user's data has been successfully fetched, execution will flow from this pin.
Pledge Historyshould be valid and can be used at this point. -
On Fail
If the process fails for any reason, execution will flow from this pin. You can use this to display an error to the user, prompt them to try again, etc.
Pledge Historywill be invalid and should not be used! -
Pledge HistoryPatreon Pledge HistoryThe user's pledge history
For any questions, help, suggestions or feature requests, please feel free to contact me at nbpsup@gmail.com