Skip to content

Commit

Permalink
fix post message
Browse files Browse the repository at this point in the history
  • Loading branch information
ielijose committed Dec 7, 2023
1 parent 9e692c8 commit e76db05
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/hooks/useNoRampModal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,13 @@ export const useNoRampModal = (config: NoRampConfig) => {
);
paymentResponse = event;

frame.contentWindow?.postMessage({
messageType: 'paymentMethod',
paymentMethod: event.paymentMethod.id,
});
frame.contentWindow?.postMessage(
{
messageType: 'paymentMethod',
paymentMethod: event.paymentMethod.id,
},
'*'
);
});
}

Expand Down

1 comment on commit e76db05

@vercel
Copy link

@vercel vercel bot commented on e76db05 Dec 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

noramp-kit – ./

noramp-kit-noramp.vercel.app
noramp-kit-git-main-noramp.vercel.app
noramp-kit.vercel.app

Please sign in to comment.