@aplazame/node

aplazame node sdk

Usage no npm install needed!

<script type="module">
  import aplazameNode from 'https://cdn.skypack.dev/@aplazame/node';
</script>

README

github-banner

Aplazame SDK for NodeJS

node install @aplazame/node --save

Full example in: Github

var aplazame = require('@aplazame/node')({
  access_token: 'merchant_private_key',
  is_sandbox: true,
})

aplazame.post('/checkout', {
  merchant: {...},
  order: {...},
  customer: {...},
  billing: {...},
  shipping: {...},
}).then(function (order) {

})

Launching example

  npm install
  
  PUBLIC_KEY=2399abc3f1f5ba3ab94s9s87ts987st9s87t9s8s \
    PRIVATE_KEY=dce981b80s098s098sy09s8y0s98yss9syt9s78s \
    node example/server.js