Skip to content

Feature: Integrated platform tips #33

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

Merged
merged 8 commits into from
Apr 5, 2024
Merged

Feature: Integrated platform tips #33

merged 8 commits into from
Apr 5, 2024

Conversation

zfedoran
Copy link
Collaborator

@zfedoran zfedoran commented Apr 3, 2024

This PR adds tipping support to the SDK.

The feature is still under internal testing/development on the mobile app and sequencer sides. Not ready to roll out yet.

Usage Example:

      const options = {
        mode: 'tip',
        platform: {
          name: 'twitter',
          username: 'getcode'
        }
      }

      const { button } = code.elements.create('button', options);

      button.on('error', (e) => { console.log('sdk-error', e); });
      button.on('cancel', (e) => { console.log('sdk-cancel', e); });

      button.mount("#my-button-container-id");

@zfedoran zfedoran merged commit b3ccb99 into main Apr 5, 2024
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.

1 participant