
Research
/Security News
Fake imToken Chrome Extension Steals Seed Phrases via Phishing Redirects
Mixed-script homoglyphs and a lookalike domain mimic imToken’s import flow to capture mnemonics and private keys.
@cafebazaar/payment-sdk
Advanced tools
Bazaar Payment SDK is a Javascript Library to Deal with Bazaar Payment Process in Client.
npm i @cafebazaar/payment-sdk
# or
yarn add @cafebazaar/payment-sdk
script.js
// ESM
import { startPaymentProcess } from '@cafebazaar/payment-sdk';
// CommonJS
const { startPaymentProcess } = require('@cafebazaar/payment-sdk');
index.html
<script src="https://unpkg.com/@cafebazaar/payment-sdk@x.x.x"></script>
<script>
const { startPaymentProcess } = window.cafeBazaarPaymentSdk;
</script>
Start Payment Process. Based on Current Javascript Runtime, It May Shows a Popup to User and Redirect Current Window to 'callbackUrl' When Popup is Closed Or Redirect the Whole Document To Payment Page and Come Back to 'callbackUrl' After The Job is Done.
type CheckoutToken = string | number;
interface CallbackUrl {
url?: string; // default to current window location
method?: 'post' | 'get'; // default to 'get'
data?: {
[propName: string]: string;
}; // default to empty object {}
}
function startPaymentProcess(checkoutToken: CheckoutToken, callbackUrl?: CallbackUrl): Promise<void>
startPaymentProcess(12345678, {
url: 'https://divar.ir/payment/12345678/callback',
method: 'post',
data: {
felan: 'bahman',
},
}); // will update current document location to via post request to 'https://divar.ir/payment/callback' with 'felan=bahman' body.
startPaymentProcess(87654321, {
url: 'https://divar.ir/payment/87654321/callback',
method: 'get',
data: {
felan: 'bahman',
},
}); // will update current document location to via get request to 'https://divar.ir/payment/callback?felan=bahman'.
FAQs
Cafebazaar Payment SDK for Javascript
We found that @cafebazaar/payment-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Mixed-script homoglyphs and a lookalike domain mimic imToken’s import flow to capture mnemonics and private keys.

Security News
Latio’s 2026 report recognizes Socket as a Supply Chain Innovator and highlights our work in 0-day malware detection, SCA, and auto-patching.

Company News
Join Socket for live demos, rooftop happy hours, and one-on-one meetings during BSidesSF and RSA 2026 in San Francisco.