Skip to content

Commit 5b0b671

Browse files
committed
fix docs
1 parent e372e2d commit 5b0b671

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

packages/checkout/README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ const MyComponent = () => {
8787
]
8888
})
8989

90-
const swapModalSettings = {
91-
collectibles: [
90+
const settings = {
91+
collectibles: [
9292
{
9393
tokenId: '1',
9494
quantity: '1'
@@ -100,7 +100,6 @@ const MyComponent = () => {
100100
recipientAddress: address,
101101
currencyAddress,
102102
collectionAddress,
103-
enable
104103
creditCardProviders: ['sardine'],
105104
copyrightText: 'ⓒ2024 Sequence',
106105
onSuccess: (txnHash: string) => {
@@ -112,10 +111,10 @@ const MyComponent = () => {
112111
txData: purchaseTransactionData,
113112
}
114113

115-
openSwapModal(swapModalSettings)
114+
openSelectPaymentModal(settings)
116115
}
117116

118-
return <button onClick={onClick}>Swap and Pay</button>
117+
return <button onClick={onClick}>Purchase collectible</button>
119118
}
120119
```
121120

0 commit comments

Comments
 (0)