Skip to content

Commit

Permalink
fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
SamueleA committed Dec 2, 2024
1 parent e372e2d commit 5b0b671
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/checkout/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ const MyComponent = () => {
]
})

const swapModalSettings = {
collectibles: [
const settings = {
collectibles: [
{
tokenId: '1',
quantity: '1'
Expand All @@ -100,7 +100,6 @@ const MyComponent = () => {
recipientAddress: address,
currencyAddress,
collectionAddress,
enable
creditCardProviders: ['sardine'],
copyrightText: 'ⓒ2024 Sequence',
onSuccess: (txnHash: string) => {
Expand All @@ -112,10 +111,10 @@ const MyComponent = () => {
txData: purchaseTransactionData,
}

openSwapModal(swapModalSettings)
openSelectPaymentModal(settings)
}

return <button onClick={onClick}>Swap and Pay</button>
return <button onClick={onClick}>Purchase collectible</button>
}
```

Expand Down

0 comments on commit 5b0b671

Please sign in to comment.