Skip to content

Salam GatewayPayment Gateway for Malaysia

Accept FPX and card payments with a simple, developer-friendly API

Start accepting payments today

bash
npm install @salamgateway/node
bash
yarn add @salamgateway/node
bash
pnpm add @salam/salam-node

Quick Example

javascript
const Salam = require('@salam/salam-node');
const salam = new Salam('sk_test_xxxxx');

// Create a payment
const payment = await salam.payments.create({
  amount: 10000, // RM 100.00 (amount in cents)
  currency: 'MYR',
  payment_method: 'pm_xxxxx',
  description: 'Order #12345',
});

console.log(payment.status); // 'succeeded'

Features Overview

Payment Processing

  • One-time payments with credit/debit cards
  • FPX online banking for Malaysian customers
  • Automatic currency conversion
  • Multi-currency support

Developer Experience

  • RESTful API with predictable resource-oriented URLs
  • Idempotent requests for safe retries
  • Webhook events for real-time updates
  • Comprehensive error handling

Security

  • PCI DSS Level 1 certified
  • TLS 1.2+ for all API communications
  • Webhook signature verification
  • Tokenized payment methods

Test Mode

  • Full-featured test environment
  • Test card numbers and bank codes
  • No real money transactions
  • Easy switching between test and live modes

Community & Support

Released under the MIT License.