1.0.2 • Published 3 years ago

jofiz v1.0.2

Weekly downloads
5
License
ISC
Repository
github
Last release
3 years ago

#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' });

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago