You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At a high level, Transak will be given minting privileges on each whitelisted primary sales contract (notice: your contract needs to be whitelisted; it is recommended to use the same config as done in Unity test - this is identified by contractId a unique mapping of Transak API key, network, and contract address) for testing) and when doing the checkout we include the calldata for minting a token and our sales contract which they will sign and send as a transaction after our credit card purchase is confirmed
It is recommended to expose an interface that makes this logic (assembling calldata) much easier or at least clearer; please reference the Unity code for inspiration https://github.com/0xsequence/sequence-unity/blob/Feature/marketplaceCheckout/Packages/Sequence-Unity/Sequence/SequenceSDK/Pay/Transak/TransakNFTCheckout.cs
Expose the ability to purchase an ERC1155 using our Primary Sales contracts via a credit card with Transak - this is a web based purchase flow
At a high level, Transak will be given minting privileges on each whitelisted primary sales contract (notice: your contract needs to be whitelisted; it is recommended to use the same config as done in Unity test - this is identified by
contractId
a unique mapping of Transak API key, network, and contract address) for testing) and when doing the checkout we include the calldata for minting a token and our sales contract which they will sign and send as a transaction after our credit card purchase is confirmedIt is recommended to expose an interface that makes this logic (assembling calldata) much easier or at least clearer; please reference the Unity code for inspiration
https://github.com/0xsequence/sequence-unity/blob/Feature/marketplaceCheckout/Packages/Sequence-Unity/Sequence/SequenceSDK/Pay/Transak/TransakNFTCheckout.cs
You should also consider create a mapping of Transak contractIds for sequence contracts
https://github.com/0xsequence/sequence-unity/blob/Feature/marketplaceCheckout/Packages/Sequence-Unity/Sequence/SequenceSDK/Pay/Transak/SequenceTransakContractIdRepository.cs
One other oddity with Transak is that, when assembling calldata, the address you are minting to should be the Transak owned contract address for the given chain listed in their docs and embedded into the Unity SDK
https://github.com/0xsequence/sequence-unity/blob/Feature/marketplaceCheckout/Packages/Sequence-Unity/Sequence/SequenceSDK/Pay/Transak/TransakNFTCheckout.cs
Once they've confirmed the credit card transaction has passed, they will transfer the ERC1155s to your address
Note: the SDK already has support for Transak On-Ramp. This code should probably live near that
The text was updated successfully, but these errors were encountered: