jofiz

1.0.2 • Public • Published

#Create transaction

##Importe Jofiz promise var Jofiz = require('jofiz'); ###Response { transaction: [Function: transaction], check: [Function: check] }

##Create Transaction const response = await Jofiz.transaction( { apiKey: 'my_api_secret_key', client: 'The Custumer name', amount: '1070', description: 'Transaction description', cancelUrl: 'https://cancelurl.com', successUrl: 'http://succesurl.com', previewImageUrl: 'https://my_brand_image.jpg', method: 'mobile' mode: 'test' });

###Response { "code": 200, "info": "Created", "data": { "wallet": "Your Wallet Name", "client": "The Custumer name", "transactionId": "xxxxxxxxxxxxxxxxxxx", "amount": 1070, "url": "https://jofiz.enovatechnologie.com/paiement/xxxxxxxxxxxxx" } }

##Check Transaction status const response = await Jofiz.check( { apiKey: 'my_api_secret_key', mode: 'test', transactionId : 'xxxxxxxxxxxxxxxxxxxx' });

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i jofiz

    Weekly Downloads

    0

    Version

    1.0.2

    License

    ISC

    Unpacked Size

    3.53 kB

    Total Files

    5

    Last publish

    Collaborators

    • chabibabatounde