Skip to content

Conversation

@jeetparikh
Copy link
Contributor

@jeetparikh jeetparikh commented Nov 19, 2025

  • Send additional params to the create widget URL
  • Remove the API call to get nft transaction id as it is not needed any more

Note

Switch to Immutable widget-url endpoint with new snake_case NFT params, remove Transak nft-transaction-id call, use numeric gas limit, and add strict referrerPolicy to iframes.

  • Transak NFT checkout flow:
    • Build widget URL via POST {IMMUTABLE_API_BASE_URL}/checkout/v1/widget-url using new snake_case fields: is_nft, contract_id, crypto_currency_code, calldata, nft_data, estimated_gas_limit, etc.; conditionally include email and exclude_fiat_currencies.
    • Map nftData to new schema (collection_address, image_url, nft_name, nft_type, price, quantity, token_id).
    • Remove previous Transak nft-transaction-id API call and related param.
    • Use numeric MAX_GAS_LIMIT and send numeric estimated_gas_limit.
  • Iframes:
    • Add referrerPolicy: strict-origin-when-cross-origin to TransakIframe and on-ramp iframe.

Written by Cursor Bugbot for commit 75ee338. This will update automatically on new commits. Configure here.

@jeetparikh jeetparikh requested a review from a team as a code owner November 19, 2025 04:09
transition: 'opacity 0.5s ease-out',
}}
onLoad={onLoad}
referrerPolicy="strict-origin-when-cross-origin"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the final PR Bugbot will review for you during this billing cycle

Your free Bugbot reviews will reset on December 13

Details

Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

Bug: useEffect missing dependency on getNFTCheckoutURL

The useEffect hook has an empty dependency array but calls getNFTCheckoutURL, which depends on contractId, environment, transakParams, and onError. When these dependencies change, getNFTCheckoutURL is recreated but the effect never re-runs to call the updated function, so the iframe will not refresh with new data.

packages/checkout/widgets-lib/src/components/Transak/useTransakIframe.ts#L127-L133

useEffect(() => {
(async () => {
const checkoutUrl = await getNFTCheckoutURL();
setIframeSrc(checkoutUrl);
})();
}, []);

Fix in Cursor Fix in Web


@nx-cloud
Copy link

nx-cloud bot commented Nov 19, 2025

View your CI Pipeline Execution ↗ for commit 75ee338

Command Status Duration Result
nx affected -t build,lint,test ✅ Succeeded 2m 3s View ↗
nx run-many -p @imtbl/sdk,@imtbl/checkout-widge... ✅ Succeeded 1m 2s View ↗

☁️ Nx Cloud last updated this comment at 2025-11-19 04:25:32 UTC

@jeetparikh jeetparikh enabled auto-merge November 19, 2025 04:25
@jeetparikh jeetparikh added this pull request to the merge queue Nov 19, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 19, 2025
@jeetparikh jeetparikh added this pull request to the merge queue Nov 19, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 19, 2025
@jeetparikh jeetparikh added this pull request to the merge queue Nov 19, 2025
Merged via the queue into main with commit 158a62e Nov 19, 2025
9 checks passed
@jeetparikh jeetparikh deleted the feat/gfi-92-transak-api-new-params branch November 19, 2025 05:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants