@paystack/inline-js 2.22.0 → 2.22.1-dev.1
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.
- package/README.md +14 -5
- package/dist/inline.js +2629 -1
- package/es/inline.js +2624 -1
- package/lib/inline.js +2626 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -174,15 +174,24 @@ const parameters = {
|
|
|
174
174
|
|
|
175
175
|
---
|
|
176
176
|
|
|
177
|
-
# PaystackPop.resumeTransaction(
|
|
177
|
+
# PaystackPop.resumeTransaction(accessCode, callbacks)
|
|
178
178
|
|
|
179
179
|
This method resumes a transaction using the access code created on your server with [the Paystack API](https://developers.paystack.co/v1.0/reference#initialize-a-transaction).
|
|
180
180
|
|
|
181
|
-
###
|
|
181
|
+
### Access Code Parameter
|
|
182
|
+
|
|
183
|
+
| Type | Description |
|
|
184
|
+
| -------------- | ------------------------------------------------------------------------------------------------------------------------------- |
|
|
185
|
+
| `String` | Access code created on the API via the [transaction/initialize](https://paystack.com/docs/#initialize-a-transaction) endpoint |
|
|
182
186
|
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
|
187
|
+
### Callback Definitions
|
|
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 }` |
|
|
186
195
|
|
|
187
196
|
## Method Response
|
|
188
197
|
|