Skip to content

Conversation

@sakksham7
Copy link
Contributor

@sakksham7 sakksham7 commented Jan 13, 2026

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD

Description

Added New call back in Hyper
confirmTokenization and Added support for mounting v2 script

For mounting v2 script using loadhyper, we can pass version as V2 in the options part of the loadhyper function.
Sample structure of v2 script mounting

loadHyper(
          { publishableKey, profileId },
          {
            customBackendUrl: urlsData.serverUrl,
            version: "V2", //or "v2"
            env: "SANDBOX", // or "sandbox"
          }
        );

And Added confirmTokenization callback in the Hyper instance

How did you test it?

tested via putting the local build of the package and then running it

Screen.Recording.2026-01-13.at.6.45.41.PM.mov

Usage Notes

For mounting the v2 script you can pass one param in options with key as version


Version Update

  • I have bumped the package version in package.json following semantic versioning:
    • x.x.x for major changes (breaking).
    • 2.0.4 -> 2.1.4 for minor changes (new feature, no breaking changes).
    • x.x.x for patch changes (bug fixes, minor improvements).

Checklist

  • I ran npm run re:build and verified the build artifacts.
  • I reviewed the code for style, readability, and consistency.
  • I verified the changes are backward compatible (if applicable).
  • I tested this change in a real or simulated consuming project.
  • I updated documentation, README, or usage examples if necessary.

Screenshots or Logs

@sakksham7 sakksham7 added the enhancement New feature or request label Jan 13, 2026
aritro2002
aritro2002 previously approved these changes Jan 13, 2026
aritro2002
aritro2002 previously approved these changes Jan 13, 2026
aritro2002
aritro2002 previously approved these changes Jan 14, 2026
@ArushKapoorJuspay ArushKapoorJuspay merged commit 7c52704 into main Jan 14, 2026
10 checks passed
@ArushKapoorJuspay ArushKapoorJuspay deleted the pmm-callback branch January 14, 2026 14:40
@github-actions github-actions bot removed the enhancement New feature or request label Jan 14, 2026
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.

5 participants