Skip to content

Conversation

@elenaperezrioja
Copy link
Contributor

Motivation / Description

Pass workflow_identifier when making a purchase. This will be added in the backend to the purchase session and will let us identify that a puchase came from navigating a workflow.

Changes introduced

Using the workflow is present in the purchases context to send it in the checkout request

Linear ticket (if any)

Additional comments

@elenaperezrioja elenaperezrioja marked this pull request as ready for review November 14, 2025 12:57
Copy link
Contributor

@tonidero tonidero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think these changes make sense! Only thing is that if we add the PresentedWorkflowContext inside PurchasesContext, it might change the implementation slightly, but we can fix it if/when we do that.


if (this.purchasesContext?.workflowIdentifier) {
requestBody.presented_workflow_id =
this.purchasesContext.workflowIdentifier;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might end up adding an intermediate PresentedWorkflowContext in the base PR, so this might change slightly, but can wait until that's done :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is stacked on tocp of that PR, so when that changes, I'll change this one

Base automatically changed from codex/add-workflowidentifier-to-sdk-configure-method to main November 14, 2025 14:54
Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@elenaperezrioja elenaperezrioja merged commit a5e6d94 into main Nov 14, 2025
6 checks passed
@elenaperezrioja elenaperezrioja deleted the workflow_id_purchases branch November 14, 2025 15:50
@tonidero tonidero added pr:other and removed pr:feat labels Nov 17, 2025
tonidero pushed a commit that referenced this pull request Nov 17, 2025
**This is an automatic release.**

## RevenueCat SDK
### 🐞 Bugfixes
* Fix `identifyUser` wasCreated (#654) via Toni Rico (@tonidero)

### 🔄 Other Changes
* Add workflowIdentifier to PresentedOfferingContext interface (#651)
via Elena Pérez Rioja (@elenaperezrioja)
* Add context workflow identifier support (#649) via Nicola Sacco
(@nicfix)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants