Closed ajzkk closed 1 year ago
Allow hosts config and added missing source retrieve function
#ENGA3-808
import Omise from "omise";
const config = { host: "api.xxxxxxx.co", vaultHost : "vault.xxxxxxx.co", publicKey: "pkey*****", secretKey: "skey*****", omiseVersion: "2019-05-29", };
const omise = Omise(config)
- Check response is valid json and reject promise if not valid. - Add types to support hosts - Added missing source retrieve function `omise.sources.retrieve('src_xxxxxx')`
Kudos, SonarCloud Quality Gate passed!
0 Bugs 0 Vulnerabilities 0 Security Hotspots 10 Code Smells
No Coverage information 0.0% Duplication
Objective
Allow hosts config and added missing source retrieve function
#ENGA3-808
Description
const config = { host: "api.xxxxxxx.co", vaultHost : "vault.xxxxxxx.co", publicKey: "pkey*****", secretKey: "skey*****", omiseVersion: "2019-05-29", };
const omise = Omise(config)