Skip to content

doublejumptokyo/mchplus-fiat-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fiat SDK for MCH Plus

This API connects to the authentication of MCH Plus, the blockchain game publishing service of doublejump.tokyo.

Please read the documentation below for how to use the API and which endpoints are exposed.

Installation

Npm

npm install mchplus-fiat-js

Yarn

yarn add mchplus-fiat-js

Usage

import MchplusAuth from 'mchplus-fiat-js'

const clientId = 'mch' //set clientId. Published by doublejump
const currencyType = 'eth_value' // set currencyType *JPY→"jpy_value" , USD→"usd_value", ETH→"eth_value"

const mchplusFiat = new MchplusFiat(clientId, currencyType)

// call methods here

Get Go Fiat Session

Generates a GoFiat redirect URL

await mchplusFiat.getGoFiatSession(logo_image_url, item_name, item_value, currency_value, tax_included, user_address, success_url, cancel_url)
//logo_image_url: string
//item_name: string
//item_value: integer
//currency_value: ETH(Specify by wei)→string, JPY→integer, USD→float  *Choose one
//tax_included: boolean
//user_address: string
//success_url: string
//cancel_url: string

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages