1.4.1 • Published 2 years ago

fatora v1.4.1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

fatora

Installation

yarn
yarn add fatora
npm
npm install fatora

Usage

  // For CommonJS Modules

const  fatora = require("fatora")

// For ES6 Modules

import  fatora  from  "fatora"

const  FatoraClient = new  fatora({ apiKey:  "YOUR_API_KEY" })

Example

const  FatoraClient = new  fatora({ apiKey:  "YOUR_API_KEY" })

// Example of creating a simple checkout
let  request = FatoraClient.PaymentApi.Checkout({
amount:  123.1,
currency:  "QAR",
order_id:  "123456",
client: {
name:  "client",
phone:  "+974 77777777",
email:  "client@domain.com",
},
language:  "ar",
success_url:  "http://domain.com/payments/success",
failure_url:  "http://domain.com/payments/failure",
fcm_token:  "XXXXXXXXX",
save_token:  true,
note:  "some additional info",
}).then((res) => {
console.log(res)
})
1.4.1

2 years ago

1.4.0

2 years ago

1.3.0

2 years ago

1.2.6

2 years ago

1.2.5

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago