-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update monetization-related docs #1539
Conversation
src/pages/extending-agent-app/products-sdk/agent-app-sdk/index.mdx
Outdated
Show resolved
Hide resolved
src/pages/extending-agent-app/products-sdk/agent-app-sdk/index.mdx
Outdated
Show resolved
Hide resolved
``` | ||
|
||
</CodeSample> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should create a short instruction of what to do exactly?
- Create a charge in Billing API
- Call startTransaction
- Display the modal
- Register payment status events
Something like that? @SamborGornicz
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When we confirm this flow is preferred I can write the instruction 😌
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great idea! Here’s the workflow from the developer’s perspective:
- Create a Charge: use the Billing API to create a new charge.
- Initiate a Transaction: call
startTransaction
with the registered charge and any metadata. This triggers a modal in the AA (or parent?). - Monitor Events: Set up listeners for transactions related events:
- webhooks - listen to transaction webhooks
- agent-app-sdk - listen for transaction events.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The webhooks would be custom here right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think he meant these webhooks: https://platform.text.com/docs/getting-started/app-guides/app-webhooks
Btw. @SamborGornicz, will there by any new webhooks for this payment method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I was referring to app webhooks. At the moment, I don’t think so. I have some plans regarding payment webhooks data structure, but, it’s unlikely to happen anytime soon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ale-kacperczyk would you take a look if this short instruction I wrote sounds ok to you? If yes, I think we're ready to publish this 👀 I just added the imgs as well
Co-authored-by: Ola <[email protected]>
Deploy preview
Scroll down to the checks section for the link to the deploy preview of your branch.
Links
Link your Jira ticket.
Description
Review and release
Apply changes and resolve conflicts. Once the described functionality lands on prod, let us know on #platform-docs-releases that your PR is ready for release. We will merge and publish the changes.