Constructor
# new IDPayEngine(token)
Name | Type | Description |
---|---|---|
token |
String | IDPay API Token |
- Source:
Members
# Errors
All Error Codes and Their Meaning
- Source:
# TransactionCodes
All Transactions Codes and their Meaning
- Source:
Methods
# CreatePayment(id, amount, params) → {Promise.<any>}
Create a Payment
Name | Type | Description |
---|---|---|
id |
String | ID of Order/Payment - 50 Length at the Must |
amount |
Number | Money Amount that you want in IRR (Rial) |
params |
PaymentParams | Some Params that are optional |
- Source:
Whatver the axios would return
- Type
- Promise.<any>
# GetError(statusCode, errorCode) → {String}
Get Error Message
Name | Type | Description |
---|---|---|
statusCode |
String | StatusCode that would be in the Response Header (such as 200, 404, ....) |
errorCode |
String | Error code that you would recive in the callback from IDPay (a random number) |
- Source:
Message in Persian
- Type
- String
# GetMessage(code) → {String}
Get Transaction Message by Code
Name | Type | Description |
---|---|---|
code |
String | Transaction Code |
- Source:
Message in Persian
- Type
- String
# PaymentStatus(recivedID, createdID, sandBox) → {Promise.<any>}
Get Status of a Created Payment
Name | Type | Default | Description |
---|---|---|---|
recivedID |
String | ID That you recived after Creating a payment with |
|
createdID |
String | ID That you sent for Creating a Payment with |
|
sandBox |
Boolean | false | Send The Request as a SandBox Request |
- Source:
Whatver the axios would return
- Type
- Promise.<any>
# Transactions(pageNumber, pageSize, sandBox) → {Promise.<any>}
Get a List of all Transactions
Name | Type | Default | Description |
---|---|---|---|
pageNumber |
Number | 0 | Page Number to fetch the Transactions (default is 0) |
pageSize |
Number | 25 | Data size that would be fetched from the Page (Default is the last 25) |
sandBox |
Boolean | false | Send The Request as a SandBox Request |
- Source:
Whatver the axios would return
- Type
- Promise.<any>
# VerifyPayment(recivedID, createdID, sandBox) → {Promise.<any>}
Verify a Created Payment (or the Callback)
Name | Type | Default | Description |
---|---|---|---|
recivedID |
String | ID That you recived after Creating a payment with |
|
createdID |
String | ID That you sent for Creating a Payment with |
|
sandBox |
Boolean | false | Send The Request as a SandBox Request |
- Source:
Whatver the axios would return
- Type
- Promise.<any>