Skip to content

fix: exposed apis#33

Open
Shivam25092001 wants to merge 1 commit into
mainfrom
fix-apis
Open

fix: exposed apis#33
Shivam25092001 wants to merge 1 commit into
mainfrom
fix-apis

Conversation

@Shivam25092001

Copy link
Copy Markdown
Contributor

FIX (BREAKING CHANGE)

  • This PR refactors the apis exposed for react-native widgets integration.
  • Proposed api:
customConfig = { backendEndpoint, assetEndpoint, sdkConfigEndpoint, loggingEndpoint }
const configuration = { elementOptions, appearance }

<HyperProvider options={publishableKey, profileId, customConfig}>
     <HyperElements options={sdkAuthorisationForPayments or clientSecret}>
            <PaymentWidget options={configuration} />
     </HyperElements>
</HyperProvider>
  • Before:
<HyperProvider publishableKey={publishableKey} profileId={profileId}>
    <PaymentWidget
        widgetId="payment-widget"
        onPaymentResult={(result: any) => {}}
        style={{ width: '100%', height: 400 }}
        options={{ getCustomisationOptions(), clientSecret, sdkAuthorisation }}
    />
</HyperProvider>

@Shivam25092001 Shivam25092001 added the invalid This doesn't seem right label Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

invalid This doesn't seem right

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant