From 0a95df4c393aab953eb8445365ca76e0f0521406 Mon Sep 17 00:00:00 2001 From: Khwezi Mngoma Date: Wed, 3 Jun 2026 00:22:44 +0200 Subject: [PATCH] Added midrand shop .http test folder --- .../http/midrandshop-api/app.http | 8 ++++++++ .../http/midrandshop-api/http-client.env.json | 16 ++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 LiteCharms.Features.Tests/http/midrandshop-api/app.http create mode 100644 LiteCharms.Features.Tests/http/midrandshop-api/http-client.env.json diff --git a/LiteCharms.Features.Tests/http/midrandshop-api/app.http b/LiteCharms.Features.Tests/http/midrandshop-api/app.http new file mode 100644 index 0000000..7297a16 --- /dev/null +++ b/LiteCharms.Features.Tests/http/midrandshop-api/app.http @@ -0,0 +1,8 @@ +## Payfast Payment Confirmation +# This endpoint is used by Payfast to confirm the payment status of a transaction. +# It receives a POST request with the payment details and updates the order status accordingly. + +POST {{baseUrl}}/v1/payments/payfast/confirm +Content-Type: application/x-www-form-urlencoded + +amount={{amount}}&item_name={{item_name}}&m_payment_id={{paymentId}}&signature={{signature}} diff --git a/LiteCharms.Features.Tests/http/midrandshop-api/http-client.env.json b/LiteCharms.Features.Tests/http/midrandshop-api/http-client.env.json new file mode 100644 index 0000000..17e9789 --- /dev/null +++ b/LiteCharms.Features.Tests/http/midrandshop-api/http-client.env.json @@ -0,0 +1,16 @@ +{ + "local": { + "baseUrl": "https://localhost:7196", + "paymentId": "jdPB2zaKM3Z", + "signature": "6aeff59bb74f2448ff2c3d81b2ec95de", + "item_name": "System Architecture Book", + "amount": "350.00" + }, + "uat": { + "baseUrl": "https://api.uat.midrandbooks.co.za", + "paymentId": "jdPB2zaKM3Z", + "signature": "6aeff59bb74f2448ff2c3d81b2ec95de", + "item_name": "System Architecture Book", + "amount": "350.00" + } +}