@paystack/inline-js 2.22.1-dev.1 → 2.22.1-dev.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +10 -10
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -113,12 +113,12 @@ This method starts a new transaction on the checkout form.
113
113
 
114
114
  ### Configuration Options for Callbacks
115
115
 
116
- | Event Name | Description | Response Properties |
116
+ | Function Name | Description | Function Parameters |
117
117
  | -------------------- | ----------------------------------------------------| ---------------------------------------------------------- |
118
- | onError | Called when the transaction was not successfully loaded | `{ message: error message from API }` |
118
+ | onError | Called when the transaction was not successfully loaded | `{ message: "error message from API" }` |
119
119
  | onCancel | Called when the customer cancels the transaction | |
120
- | onLoad | Called when the transaction is successful loaded and the customer can see the checkout form | `{ id: transaction id from API, customer: customer object from API, accessCode: transaction access code }` |
121
- | onSuccess | Called when the customer successfully completes a transaction | `{ id: transaction id from API, reference: transaction reference, message: message from API }` |
120
+ | onLoad | Called when the transaction is successfully loaded and the customer can see the checkout form | `{ id: "transaction id from API", customer: "customer object from API", accessCode: "transaction access code" }` |
121
+ | onSuccess | Called when the customer successfully completes a transaction | `{ id: "transaction id from API", reference: "transaction reference", message: "message from API" }` |
122
122
 
123
123
 
124
124
 
@@ -186,12 +186,12 @@ This method resumes a transaction using the access code created on your server w
186
186
 
187
187
  ### Callback Definitions
188
188
 
189
- | Function Name | Description | Response Properties |
190
- | -------------------- | ----------------------------------------------------| ---------------------------------------------------------- |
191
- | onError | Called when the transaction was not successfully loaded | `{ message: error message from API }` |
192
- | onCancel | Called when the customer cancels the transaction | |
193
- | onLoad | Called when the transaction is successful loaded and the customer can see the checkout form | `{ id: transaction id from API, customer: customer object from API, accessCode: transaction access code }` |
194
- | onSuccess | Called when the customer successfully completes a transaction | `{ id: transaction id from API, reference: transaction reference, message: message from API }` |
189
+ | Function Name | Description | Callback Parameters |
190
+ | -------------------------- | ----------------------------------------------------| ---------------------------------------------------------- |
191
+ | onError | Called when the transaction was not successfully loaded | `{ message: "error message from API" }` |
192
+ | onCancel | Called when the customer cancels the transaction | |
193
+ | onLoad | Called when the transaction is successfully loaded and the customer can see the checkout form | `{ id: "transaction id from API", customer: "customer object from API", accessCode: "transaction access code" }` |
194
+ | onSuccess | Called when the customer successfully completes a transaction | `{ id: "transaction id from API", reference: "transaction reference", message: "message from API" }` |
195
195
 
196
196
  ## Method Response
197
197
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paystack/inline-js",
3
- "version": "2.22.1-dev.1",
3
+ "version": "2.22.1-dev.2",
4
4
  "description": "Client-side library to load the Paystack checkout form",
5
5
  "main": "lib/inline.js",
6
6
  "module": "es/inline.js",