Skip to content

Latest commit

 

History

History

docs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Trolley JavaScript SDK

Index

Modules

Classes

Interfaces

Functions


Functions

connect

connect(config: ConfigurationParams): Gateway

Defined in index.ts:21

Create a client for the Trolley (Payment Rails) JavasScript API

const client = trolley.connect({
  key: "MY_PUBLIC_KEY",
  secret: "MY_PRIVATE_KEY",
});

Parameters:

Param Type Description
config ConfigurationParams The configuration parameters

Returns: Gateway