Skip to content
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

One-click Payment flow for external developers #29

Merged
merged 11 commits into from
Oct 31, 2024

Conversation

SamborGornicz
Copy link
Collaborator

@SamborGornicz SamborGornicz commented Oct 22, 2024

This PR introduces the startTransaction method to all widgets in both the agent-app-sdk and helpdesk-sdk.

startTransaction - This method processes the provided charge details, converting them into a format compatible with the One-Click Payment flow. Once it has all the information processed it will trigger events that display a payments modal with the transaction summary in AA (or HD in the future).


One-Click Payment makes processing transactions quicker and more straightforward. It enables third-party developers to initiate a transaction within their applications and then transfer the transaction details to the AA (or HD in the future) and display them in a payment modal. There, the end user can easily accept or decline the transaction.

Here's a preview how it's going to look:

SCR-20240828-lwpv

Copy link

changeset-bot bot commented Oct 22, 2024

🦋 Changeset detected

Latest commit: 492addf

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@livechat/agent-app-sdk Minor
@livechat/helpdesk-sdk Minor
@livechat/widget-core-sdk Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

@pastepi pastepi left a comment

Choose a reason for hiding this comment

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

lgtm, should probably also update READMEs with startTransaction documentation for both agent-app-sdk and helpdesk-sdk

Copy link
Collaborator

@jakubsikora jakubsikora left a comment

Choose a reason for hiding this comment

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

🥇 💵

@SamborGornicz SamborGornicz force-pushed the feature/with-transaction branch from 65c2c96 to 162d79d Compare October 29, 2024 17:19
@SamborGornicz SamborGornicz merged commit 1f78de6 into master Oct 31, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants