Constructor
new PaymentServer(sdk, serverUrl, opts)
Create a new payment server instance.
- Source:
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
sdk |
ShelfNetwork
|
Parent SDK instance. |
||||||||||||||||||||||||||||||
serverUrl |
string
|
payment server URL. |
||||||||||||||||||||||||||||||
opts |
Object
|
|
Classes
Methods
confirm(opts) → {Promise.<JsonApiResponse>}
Confirm a transaction.
- Source:
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
opts |
object
|
Payment details.
|
create(opts) → {Promise.<JsonApiResponse>}
Preauthorize a transaction.
- Source:
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
object
|
Payment details.
|
createTransactionV2(opts) → {Promise.<JsonApiResponse>}
Preauthorize a transaction.
- Source:
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
object
|
Payment details.
|
get(transactionId) → {Promise.<JsonApiResponse>}
Get a transaction ID.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
transactionId |
string
|
Transaction ID. |
getPage(queryopt) → {Promise.<JsonApiResponse>}
Get a page of transactions.
- Source:
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
query |
object
|
<optional> |
Request options.
|
reverse(opts) → {Promise.<JsonApiResponse>}
Reverse a transaction.
- Source:
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
opts |
object
|
Payment details.
|