Catalog npm
PACKAGE EXPLORERView in registry

3thix-typescript-sdk

npm

[![NPM Version](https://img.shields.io/npm/v/3thix-typescript-sdk)](https://www.npmjs.com/package/3thix-typescript-sdk)

Versions collected1
Direct dependencies18From release 1.0.0
Last observed20 Oct, 19:52 UTC

README

Current package documentation

3thix typescript SDK

NPM Version

Installing

npm install 3thix-typescript-sdk
# OR
yarn add 3thix-typescript-sdk

Example

import Client from '3thix-typescript-sdk';

const client = Client("sandbox", "<your-api-key>")

async function openNewPayment() {
  try {
    const resp = await client.createOrderPayment("1.00", "USD")
    const paymentUrl = resp.getPaymentUrl()

    const win = window.open(paymentUrl, '', 'popup=true');
    if (!win) return;

    win.resizeTo(550, 800);
  } catch (err) {
    console.error(err)
  }
}

openNewPayment()

Interface

export interface SDK {
  invoiceGet(id: string): Promise<InvoiceGetResponse>;
  createOrderPayment(amount: string, currency: string): Promise<CreateOrderResponse>;
  createOrderPurchase(fulfillmentGameUserId: string, destinationCurrency: string, cart: Cart): Promise<CreateOrderResponse>;
  authorizeFulfillment(invoiceId: string): Promise<AuthorizeFulfillmentResponse>;
  getCampaigns(gameUserId: string): Promise<GetCampaignResponse>;
  syncUsersGame(req: SyncUsersReq): Promise<SyncUsersResponse>;
  createOrderFulfillment(amount: string, currency: string, rail: string, sourceAccountId: string, fulfillmentGameUserId: string): Promise<CreateOrderResponse>;
}

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
1.0.0Registry latest13 Dec 202418

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:52 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:0b529101829029588a4965a5eb01c34925f5dbdaa032061cb1ada9db2fa3647a