diff --git a/dist/doc/payments/payment-methods/qr-event.js b/dist/doc/payments/payment-methods/qr-event.js index 26e5574..04d05f7 100644 --- a/dist/doc/payments/payment-methods/qr-event.js +++ b/dist/doc/payments/payment-methods/qr-event.js @@ -5,36 +5,43 @@ const json = `{ "domain": "test", "status": "success", "reference": "48rx32f1womvcr4", - "amount": 10000, + "amount": 186677, "message": "madePayment", "gateway_response": "Payment successful", - "paid_at": "2018-12-05T15:58:45.000Z", - "created_at": "2018-12-05T15:58:02.000Z", + "paid_at": "2024-08-20T12:41:12.000Z", + "created_at": "2024-08-20T12:39:22.000Z", "channel": "qr", - "currency": "NGN", + "currency": "ZAR", "ip_address": "18.130.45.28, 141.101.107.157", + "fees_breakdown": { + "amount": "5514", + "formula": null, + "type": "paystack" + }, "metadata": "", "log": null, - "fees": null, + "fees": 6342, "fees_split": null, "authorization": { "authorization_code": "AUTH_2b4zs69fgy7qflh", "bin": "483953", "last4": "6208", "exp_month": "12", - "exp_year": "2018", + "exp_year": "2025", "channel": "qr", - "card_type": "DEBIT", - "bank": "Visa QR", - "country_code": "NG", + "card_type": "CREDIT", + "bank": "ABSA BANK LIMITED, SOUTH AFRICA", + "country_code": "ZA", "brand": "VISA", "reusable": false, "signature": null, - "account_name": "BoJack Horseman" + "account_name": null, + "receiver_bank_account_number": null, + "receiver_bank": null }, "customer": { "id": 16787, - "first_name": "I", + "first_name": "Ian", "last_name": "SURRENDER", "email": "customer@email.com", "customer_code": "CUS_ehg851zbxon0bvx", @@ -45,7 +52,7 @@ const json = `{ "plan": {}, "subaccount": {}, "subaccount_group": {}, - "paidAt": "2018-12-05T15:58:45.000Z" + "paidAt": "2024-08-20T12:41:12.000Z" } }` diff --git a/dist/doc/payments/payment-methods/qr.js b/dist/doc/payments/payment-methods/qr.js index 654a1b8..a85ce67 100644 --- a/dist/doc/payments/payment-methods/qr.js +++ b/dist/doc/payments/payment-methods/qr.js @@ -1,11 +1,11 @@ const sh = `curl https://api.paystack.co/charge -H "Authorization: Bearer YOUR_SECRET_KEY" -H "Content-Type: application/json" --d '{ "amount": 100, +-d '{ "amount": 1000, "email": "customer@email.com", - "currency": "NGN", + "currency": "ZAR", "qr": { - "provider" : "visa" + "provider" : "scan-to-pay" } }' -X POST` @@ -13,11 +13,11 @@ const sh = `curl https://api.paystack.co/charge const js = `const https = require('https') const params = JSON.stringify({ - "amount": 100, + "amount": 1000, "email": "customer@email.com", - "currency": "NGN", + "currency": "ZAR", "qr": { - "provider" : "visa" + "provider" : "scan-to-pay" } }) @@ -60,11 +60,11 @@ curl_setopt_array($curl, array( CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => [ - "amount" => 100, + "amount" => 1000, "email" => "customer@email.com", - "currency" => "NGN", + "currency" => "ZAR", "qr" => [ - "provider" => "visa" + "provider" => "scan-to-pay" ] ], CURLOPT_HTTPHEADER => array( diff --git a/src/doc/payments/payment-methods/qr-event/index.json b/src/doc/payments/payment-methods/qr-event/index.json index f180a48..03b7a5a 100644 --- a/src/doc/payments/payment-methods/qr-event/index.json +++ b/src/doc/payments/payment-methods/qr-event/index.json @@ -5,36 +5,43 @@ "domain": "test", "status": "success", "reference": "48rx32f1womvcr4", - "amount": 10000, + "amount": 186677, "message": "madePayment", "gateway_response": "Payment successful", - "paid_at": "2018-12-05T15:58:45.000Z", - "created_at": "2018-12-05T15:58:02.000Z", + "paid_at": "2024-08-20T12:41:12.000Z", + "created_at": "2024-08-20T12:39:22.000Z", "channel": "qr", - "currency": "NGN", + "currency": "ZAR", "ip_address": "18.130.45.28, 141.101.107.157", + "fees_breakdown": { + "amount": "5514", + "formula": null, + "type": "paystack" + }, "metadata": "", "log": null, - "fees": null, + "fees": 6342, "fees_split": null, "authorization": { "authorization_code": "AUTH_2b4zs69fgy7qflh", "bin": "483953", "last4": "6208", "exp_month": "12", - "exp_year": "2018", + "exp_year": "2025", "channel": "qr", - "card_type": "DEBIT", - "bank": "Visa QR", - "country_code": "NG", + "card_type": "CREDIT", + "bank": "ABSA BANK LIMITED, SOUTH AFRICA", + "country_code": "ZA", "brand": "VISA", "reusable": false, "signature": null, - "account_name": "BoJack Horseman" + "account_name": null, + "receiver_bank_account_number": null, + "receiver_bank": null }, "customer": { "id": 16787, - "first_name": "I", + "first_name": "Ian", "last_name": "SURRENDER", "email": "customer@email.com", "customer_code": "CUS_ehg851zbxon0bvx", @@ -45,6 +52,6 @@ "plan": {}, "subaccount": {}, "subaccount_group": {}, - "paidAt": "2018-12-05T15:58:45.000Z" + "paidAt": "2024-08-20T12:41:12.000Z" } } \ No newline at end of file diff --git a/src/doc/payments/payment-methods/qr/index.js b/src/doc/payments/payment-methods/qr/index.js index a4517ca..7c1c1da 100644 --- a/src/doc/payments/payment-methods/qr/index.js +++ b/src/doc/payments/payment-methods/qr/index.js @@ -1,11 +1,11 @@ const https = require('https') const params = JSON.stringify({ - "amount": 100, + "amount": 1000, "email": "customer@email.com", - "currency": "NGN", + "currency": "ZAR", "qr": { - "provider" : "visa" + "provider" : "scan-to-pay" } }) diff --git a/src/doc/payments/payment-methods/qr/index.php b/src/doc/payments/payment-methods/qr/index.php index c627203..16cc823 100644 --- a/src/doc/payments/payment-methods/qr/index.php +++ b/src/doc/payments/payment-methods/qr/index.php @@ -9,11 +9,11 @@ CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => [ - "amount" => 100, + "amount" => 1000, "email" => "customer@email.com", - "currency" => "NGN", + "currency" => "ZAR", "qr" => [ - "provider" => "visa" + "provider" => "scan-to-pay" ] ], CURLOPT_HTTPHEADER => array( diff --git a/src/doc/payments/payment-methods/qr/index.sh b/src/doc/payments/payment-methods/qr/index.sh index a370bfb..7b221a0 100644 --- a/src/doc/payments/payment-methods/qr/index.sh +++ b/src/doc/payments/payment-methods/qr/index.sh @@ -1,11 +1,11 @@ curl https://api.paystack.co/charge -H "Authorization: Bearer YOUR_SECRET_KEY" -H "Content-Type: application/json" --d '{ "amount": 100, +-d '{ "amount": 1000, "email": "customer@email.com", - "currency": "NGN", + "currency": "ZAR", "qr": { - "provider" : "visa" + "provider" : "scan-to-pay" } }' -X POST \ No newline at end of file