Skip to content

Commit

Permalink
change stripe id
Browse files Browse the repository at this point in the history
  • Loading branch information
ielijose committed Dec 7, 2023
1 parent 2122ee6 commit 3d94b50
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/hooks/useNoRampModal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const useNoRampModal = (config: NoRampConfig) => {
}

const stripe = await loadStripe(
'pk_test_51Kvq6SIkFYA0Bt9COhStV61cQKyfUE8QoJyTSnDi2s0a6OsKiMLTqN0Cm8q1kjqIXzMpB8ZWF60vWIQFIjT3JWWm00IpaUbajk'
'pk_test_UVG6dCspo15ZnN2v3OnUPY7900cfAiVOpy'
);
if (!stripe) {
return;
Expand All @@ -76,18 +76,19 @@ export const useNoRampModal = (config: NoRampConfig) => {
});

window.addEventListener('message', (event) => {
console.log('message event: ', event.data.type);
console.log('message event kit: ', event.data.type);

if (event.data.type == 'letsGo') {

Check warning on line 81 in src/hooks/useNoRampModal.ts

View workflow job for this annotation

GitHub Actions / Build, lint, and test on Node 18.x and ubuntu-latest

Expected '===' and instead saw '=='

Check warning on line 81 in src/hooks/useNoRampModal.ts

View workflow job for this annotation

GitHub Actions / Build, lint, and test on Node 16.x and ubuntu-latest

Expected '===' and instead saw '=='

Check warning on line 81 in src/hooks/useNoRampModal.ts

View workflow job for this annotation

GitHub Actions / Build, lint, and test on Node 18.x and macOS-latest

Expected '===' and instead saw '=='

Check warning on line 81 in src/hooks/useNoRampModal.ts

View workflow job for this annotation

GitHub Actions / Build, lint, and test on Node 16.x and macOS-latest

Expected '===' and instead saw '=='

Check warning on line 81 in src/hooks/useNoRampModal.ts

View workflow job for this annotation

GitHub Actions / Build, lint, and test on Node 16.x and windows-latest

Expected '===' and instead saw '=='

Check warning on line 81 in src/hooks/useNoRampModal.ts

View workflow job for this annotation

GitHub Actions / Build, lint, and test on Node 18.x and windows-latest

Expected '===' and instead saw '=='
(async () => {
const result = await paymentRequest.canMakePayment();
console.log('result: ', result);

if (result && result.applePay) {
frame.contentWindow?.postMessage(
{
type: 'canMakePayment',
},
targetOrigin
'*'
);
} else {
console.error('Cannot make payment');
Expand Down

1 comment on commit 3d94b50

@vercel
Copy link

@vercel vercel bot commented on 3d94b50 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-git-main-noramp.vercel.app
noramp-kit.vercel.app
noramp-kit-noramp.vercel.app

Please sign in to comment.