
Research
6 Malicious Packagist Themes Ship Trojanized jQuery and FUNNULL Redirect Payloads
Six malicious Packagist packages posing as OphimCMS themes contain trojanized jQuery that exfiltrates URLs, injects ads, and loads FUNNULL-linked redirects.
@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 { observePaymentStatus, startPaymentProcess } from '@cafebazaar/payment-sdk';
// CommonJS
const { observePaymentStatus, startPaymentProcess } = require('@cafebazaar/payment-sdk');
index.html
<script src="https://unpkg.com/@cafebazaar/payment-sdk@x.x.x/dist/index.browser.js"></script>
<script>
const { observePaymentStatus, startPaymentProcess } = window.cafeBazaarPaymentSdk;
</script>
Get Status of a Payment.
getPaymentStatus(checkoutToken: CheckoutToken): Promise<PaymentStatus>
getPaymentStatus(12345678).then((paymentStatus) => {
console.log(paymentStatus);
});
Observe Payment Status.
It Will Register a Listener to the Payment Status and Fire the callback Param When It's Changed.
It's Also Fire the callback on Initiation.
observePaymentStatus(checkoutToken: CheckoutToken, callback: PaymentStatusListenerCallback): void
observePaymentStatus(12345678, (paymentStatus) => {
console.log(paymentStatus); // Payment Status Changed!
});
Un-Observe Payment Status. It Will UnRegister the Previous Listener of the Payment Status.
unobservePaymentStatus(checkoutToken: CheckoutToken, callback: PaymentStatusListenerCallback): void
const callback = (paymentStatus) => {
console.log(paymentStatus); // Payment Status Changed!
};
observePaymentStatus(12345678, callback);
///
///
unobservePaymentStatus(12345678, callback); // No More Calls on Callback Function
Start Payment Process.
Based on Current Javascript Runtime, It May Shows a Popup to User and Resolves When Popup is Closed Or Redirect the Whole Document To Popup Url and Go Back to Current Url After Jobs Done (So Never Resolves In This Situation).
To Understand What's Happening on the Payment, Register a Listener to Payment via observePaymentStatus Before Calling This.
function startPaymentProcess(checkoutToken: CheckoutToken): Promise<void>
startPaymentProcess(checkoutToken); // May Open a Popup or Redirect the Document and Comeback to Current Url After That
FAQs
Cafebazaar Payment SDK for Javascript
The npm package @cafebazaar/payment-sdk receives a total of 0 weekly downloads. As such, @cafebazaar/payment-sdk popularity was classified as not popular.
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
Six malicious Packagist packages posing as OphimCMS themes contain trojanized jQuery that exfiltrates URLs, injects ads, and loads FUNNULL-linked redirects.

Security News
The GCVE initiative operated by CIRCL has officially opened its publishing ecosystem, letting organizations issue and share vulnerability identifiers without routing through a central authority.

Security News
The project is retiring its odd/even release model in favor of a simpler annual cadence where every major version becomes LTS.