livechat / products-sdk

The collection of sdk's for our products to help developers with building integrations
0 stars 0 forks source link

One-click Payment methods in agent-app-sdk #27

Open SamborGornicz opened 1 month ago

SamborGornicz commented 1 month ago

This PR adds two methods to all widgets in agent-app-sdk:

startDirectCharge - registers direct charge and sends transaction details to the OneClickPayment modal in the AA startRecurrentCharge - registers recurrent charge and sends transaction details to the OneClickPayment modal in the AA


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. There, the end user can easily accept or decline the transaction.

Here's preview how its going to look like:

SCR-20240828-lwpv
changeset-bot[bot] commented 1 month ago

🦋 Changeset detected

Latest commit: 7c3291306148ac153e21d66371eca02a8a262054

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

This PR includes changesets to release 1 package | Name | Type | | ----------------------- | ----- | | @livechat/agent-app-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