Compare commits
4
Commits
fc2f457add
..
1.5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
851ca72b46 | ||
|
|
b731ebdcea | ||
|
|
f3e71aa604 | ||
|
|
e07cd0e0fd |
@@ -361,4 +361,3 @@ MigrationBackup/
|
|||||||
|
|
||||||
# Fody - auto-generated XML schema
|
# Fody - auto-generated XML schema
|
||||||
FodyWeavers.xsd
|
FodyWeavers.xsd
|
||||||
/MidrandBooksApi/http/http-client.env.json
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ public sealed class ConfirmationEndpoint : IEndpoint
|
|||||||
|
|
||||||
public void Map(IEndpointRouteBuilder builder)
|
public void Map(IEndpointRouteBuilder builder)
|
||||||
{
|
{
|
||||||
builder.MapPost("payments/payfast/confirm", async (HttpRequest request, HashService hashService,
|
builder.MapPost("payments/confirm", async (HttpRequest request, HashService hashService,
|
||||||
IJobOrchestrator jobOrchestrator, CancellationToken cancellationToken) =>
|
IJobOrchestrator jobOrchestrator, CancellationToken cancellationToken) =>
|
||||||
{
|
{
|
||||||
using Activity? activity = PaymentActivitySource.StartActivity("ReceivePayfastWebhook", ActivityKind.Server);
|
using Activity? activity = PaymentActivitySource.StartActivity("ReceivePayfastWebhook", ActivityKind.Server);
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
## 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}}
|
|
||||||
Reference in New Issue
Block a user