Skip to content

Commit

Permalink
Add chargebackProtectionData (#7021)
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondjacobson authored Dec 23, 2023
1 parent b71a0d4 commit a6c645a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const CoinflowOnrampDrawerHeader = ({ onClose }: { onClose: () => void }) => {

export const CoinflowOnrampDrawer = () => {
const {
data: { amount, serializedTransaction },
data: { amount, serializedTransaction, purchaseMetadata },
isOpen,
onClose
} = useCoinflowOnrampModal()
Expand Down Expand Up @@ -115,6 +115,7 @@ export const CoinflowOnrampDrawer = () => {
<CoinflowPurchase
transaction={transaction}
wallet={adapter.wallet}
chargebackProtectionData={purchaseMetadata ? [purchaseMetadata] : []}
connection={adapter.connection}
onSuccess={handleSuccess}
merchantId={env.COINFLOW_MERCHANT_ID || ''}
Expand Down

0 comments on commit a6c645a

Please sign in to comment.