Closed nrutledge closed 2 years ago
@nrutledge How can I call the sdk.makeTransaction.buy()
method from where to export it is there an example?
@nrutledge How can I call the
sdk.makeTransaction.buy()
method from where to export it is there an example?
@dimakrsna That's from the seabug-sdk. You can check the readme in src/seabug-sdk
for an example of getting an sdk instance. (For the params, you could create some environment variables / config file that stores these and just use dummy values for now as it won't matter for getting mock data).
@dimakrsna can we add a notification toast so when a buyer clicks checkout they see either a success message if it's successful or an error message. we can use react-hot-toast npm package
Also the modal shouldn't be in the parent div, thats why a bracket () shows on the side @dimakrsna
Acceptance Criteria:
sdk.makeTransaction.buy()
function is called with correct BuyParams (see reference below).Checkout field reference:
image.title
artist.name
BuyParams reference:
Checkout window mockup:
Note: This functionality will be extended further once more details have been clarified (will be in separate issue).