diff --git a/dist/doc/payments/preauthorization/capture.js b/dist/doc/payments/preauthorization/capture.js index 6d40579..768544f 100644 --- a/dist/doc/payments/preauthorization/capture.js +++ b/dist/doc/payments/preauthorization/capture.js @@ -74,4 +74,60 @@ const php = `` -export {sh, js, php} \ No newline at end of file +const json = `{ + "status": true, + "message": "Capture attempted", + "data": { + "amount": 1000, + "currency": "ZAR", + "transaction_date": "2023-08-24T11:38:32.000Z", + "status": "success", + "reference": "123-abc", + "domain": "test", + "metadata": { + "custom_fields": [ + { + "display_name": "Cart Number", + "variable_name": "cart_number", + "value": "123443" + } + ] + }, + "gateway_response": "Approved", + "message": null, + "channel": "preauth", + "ip_address": null, + "log": null, + "fees": 373, + "authorization": { + "authorization_code": "AUTH_5h7ifp9x1h", + "bin": "541541", + "last4": "0051", + "exp_month": "12", + "exp_year": "2028", + "channel": "card", + "card_type": "mastercard", + "bank": "Absa Bank Limited, South Africa ", + "country_code": "ZA", + "brand": "mastercard", + "reusable": true, + "signature": "SIG_6bCAS8p20rANfmuYgQ4a", + "account_name": null + }, + "customer": { + "id": 180063193, + "first_name": null, + "last_name": null, + "email": "customer@email.com", + "customer_code": "CUS_zi5os4fs31qxao0", + "phone": null, + "metadata": null, + "risk_action": "default", + "international_format_phone": null + }, + "plan": null, + "id": 1504173002 + } +}` + +export {sh, js, php, json} \ No newline at end of file diff --git a/dist/doc/payments/preauthorization/initialize.js b/dist/doc/payments/preauthorization/initialize.js index 4760242..46e9300 100644 --- a/dist/doc/payments/preauthorization/initialize.js +++ b/dist/doc/payments/preauthorization/initialize.js @@ -74,4 +74,14 @@ const php = `` -export {sh, js, php} \ No newline at end of file +const json = `{ + "status": true, + "message": "Authorization URL created", + "data": { + "authorization_url": "https://checkout.paystack.com/preauthorization/NDEyOTIyOmxpdmU6ZWloZ2VodTNyczZjanJj", + "access_code": "NDEyOTIyOmxpdmU6ZWloZ2VodTNyczZjanJj", + "reference": "eihgehu3rs6cjrc" + } +}` + +export {sh, js, php, json} \ No newline at end of file diff --git a/dist/doc/payments/preauthorization/release.js b/dist/doc/payments/preauthorization/release.js index a76deba..bcdd71d 100644 --- a/dist/doc/payments/preauthorization/release.js +++ b/dist/doc/payments/preauthorization/release.js @@ -69,4 +69,14 @@ const php = `` -export {sh, js, php} \ No newline at end of file +const json = `{ + "status": true, + "message": "Successfully released", + "data": { + "id": 507, + "status": "released", + "reference": "123-abc" + } +}` + +export {sh, js, php, json} \ No newline at end of file diff --git a/dist/doc/payments/preauthorization/reserve.js b/dist/doc/payments/preauthorization/reserve.js index 6f36bf4..f0c1f1c 100644 --- a/dist/doc/payments/preauthorization/reserve.js +++ b/dist/doc/payments/preauthorization/reserve.js @@ -78,4 +78,54 @@ const php = `` -export {sh, js, php} \ No newline at end of file +const json = `{ + "status": true, + "message": "Preauthorization successful", + "data": { + "id": 523, + "domain": "test", + "status": "authorized", + "reference": "pre_p0xpfge2", + "amount": 1600, + "gateway_response": { + "authorizeResponse": "Approved", + "rrn":"KdeasineK" + }, + "created_at": "2023-08-24T19:00:18.000Z", + "released_at": null, + "scheduled_release_date": "2023-08-25T19:00:26.000Z", + "currency": "ZAR", + "metadata": null, + "fees": 0, + "authorization": { + "authorization_code": "AUTH_dalhwqi5vw", + "bin": "454545", + "last4": "4545", + "exp_month": "08", + "exp_year": "2028", + "channel": "card", + "card_type": "visa credit", + "bank": "NEDBANK", + "country_code": "ZA", + "brand": "visa", + "reusable": true, + "signature": "SIG_BAJR7TwTw5TwKOYCro5c", + "account_name": null + }, + "customer": { + "id": 180063193, + "first_name": null, + "last_name": null, + "email": "test@paystack.com", + "customer_code": "CUS_zi5os4fs31qxao0", + "phone": null, + "metadata": null, + "risk_action": "default", + "international_format_phone": null + }, + "merchant_id": 210002, + "merchant_name": "ABC merchant" + } +}` + +export {sh, js, php, json} \ No newline at end of file diff --git a/src/doc/payments/preauthorization/capture/config.yml b/src/doc/payments/preauthorization/capture/config.yml index 2cafd95..73f0a25 100644 --- a/src/doc/payments/preauthorization/capture/config.yml +++ b/src/doc/payments/preauthorization/capture/config.yml @@ -1,4 +1,5 @@ languages: - sh - js - - php \ No newline at end of file + - php + - json \ No newline at end of file diff --git a/src/doc/payments/preauthorization/initialize/config.yml b/src/doc/payments/preauthorization/initialize/config.yml index 2cafd95..73f0a25 100644 --- a/src/doc/payments/preauthorization/initialize/config.yml +++ b/src/doc/payments/preauthorization/initialize/config.yml @@ -1,4 +1,5 @@ languages: - sh - js - - php \ No newline at end of file + - php + - json \ No newline at end of file diff --git a/src/doc/payments/preauthorization/release/config.yml b/src/doc/payments/preauthorization/release/config.yml index 2cafd95..73f0a25 100644 --- a/src/doc/payments/preauthorization/release/config.yml +++ b/src/doc/payments/preauthorization/release/config.yml @@ -1,4 +1,5 @@ languages: - sh - js - - php \ No newline at end of file + - php + - json \ No newline at end of file diff --git a/src/doc/payments/preauthorization/reserve/config.yml b/src/doc/payments/preauthorization/reserve/config.yml index 2cafd95..73f0a25 100644 --- a/src/doc/payments/preauthorization/reserve/config.yml +++ b/src/doc/payments/preauthorization/reserve/config.yml @@ -1,4 +1,5 @@ languages: - sh - js - - php \ No newline at end of file + - php + - json \ No newline at end of file