Skip to content

Gusb3ll/node-beamcheckout

Repository files navigation

node-beamcheckout

Package for Beam Checkout

Installation

pnpm add node-beamcheckout

Example

import BeamCheckout from 'node-beamcheckout'

const beam = new BeamCheckout("[YOUR_MERCHANT_ID]", "[YOUR_API_KEY]")

const paymentInfo = await beam.createPayment({
  order: {
    netAmount: 100,
    totalAmount: 100,
    merchantReferenceId: 'ORDER-001'
  },
  redirectUrl: 'https://github.com/gusb3ll'
})

console.log(paymentInfo)