Skip to content

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.

2 participants