
Product
PHP and Composer Support Is Now in Beta
Socket’s PHP and Composer support is now in Beta for all customers, with PHP reachability analysis generally available.
@apiosk/checkout-web
Advanced tools
Framework-agnostic Apiosk checkout button and custom element for HTML apps
@apiosk/checkout-webFramework-agnostic checkout button for plain HTML, server-rendered websites, and apps that want a custom element instead of a framework-specific SDK.
This package ships:
<apiosk-checkout-button> custom element@apiosk/checkout-coreAfter publish:
npm install @apiosk/checkout-web
Before publish:
npm install ./subs/checkout-web
<apiosk-checkout-button id="checkout"></apiosk-checkout-button>
<script type="module">
import { registerApioskCheckoutButton } from "@apiosk/checkout-web";
registerApioskCheckoutButton();
document.getElementById("checkout").config = {
merchantName: "Northstar Marketplace",
productName: "Automation bundle",
amountLabel: "24.95 EUR",
orderReference: "ord_2048",
subtitle: "One trigger for human checkout and programmable payment rails.",
rails: [
{ id: "credits", status: "live", launchUrl: "https://gateway.apiosk.com/geocode/forward" },
{ id: "x402", status: "live", launchUrl: "https://gateway.apiosk.com/geocode/forward" },
{ id: "agent", status: "pilot" }
],
callbacks: {
successUrl: "https://merchant.example/success",
cancelUrl: "https://merchant.example/cancel",
webhookUrl: "https://merchant.example/webhooks/apiosk",
statusUrl: "https://merchant.example/api/orders/ord_2048"
}
};
</script>
import {
createCheckoutButton,
registerApioskCheckoutButton,
} from "@apiosk/checkout-web";
registerApioskCheckoutButton();
const button = createCheckoutButton({
merchantName: "Apiosk Checkout",
productName: "Geocode /forward",
amountLabel: "0.01 USDC",
orderReference: "intent_live_geocode_forward",
rails: [
{ id: "credits", status: "live", launchUrl: "https://gateway.apiosk.com/geocode/forward" },
{ id: "x402", status: "live", launchUrl: "https://gateway.apiosk.com/geocode/forward" }
]
});
document.body.append(button);
This package is intentionally opinionated:
The launch step opens the configured rail launchUrl in a new tab. When the
merchant intent API lands, the button should keep the same config contract and
only change what the launch target points at.
Use @apiosk/checkout-web when:
Use @apiosk/checkout-core directly when you only need the contract and no UI.
FAQs
Framework-agnostic Apiosk checkout button and custom element for HTML apps
The npm package @apiosk/checkout-web receives a total of 81 weekly downloads. As such, @apiosk/checkout-web popularity was classified as not popular.
We found that @apiosk/checkout-web demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Product
Socket’s PHP and Composer support is now in Beta for all customers, with PHP reachability analysis generally available.

Product
Socket is bringing experimental protection to Firefox, scanning 97,000+ extensions in Mozilla's official directory for malware and risky updates.

Research
/Security News
Three compromised Rust crates pulled in a malicious dependency that downloaded and executed cross-platform malware during Cargo builds.