Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pay - Sardine NFT Checkout - ERC1155 Primary Sales #288

Open
BellringerQuinn opened this issue Feb 18, 2025 · 0 comments
Open

Pay - Sardine NFT Checkout - ERC1155 Primary Sales #288

BellringerQuinn opened this issue Feb 18, 2025 · 0 comments

Comments

@BellringerQuinn
Copy link
Collaborator

BellringerQuinn commented Feb 18, 2025

Expose the ability to purchase an ERC1155 using our Primary Sales contracts via a credit card with Sardine - this is a web based purchase flow

Ridl: https://github.com/0xsequence/stack/blob/master/api/proto/api.ridl#L869
Specifically, we'll need to integrate every endpoint that wasn't added in #287

At a high level, Sardine 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 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/Sardine/ISardineCheckout.cs

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

No branches or pull requests

1 participant