Skip to main content
GET
/
api
/
internal
/
transactionPayflow
/
{id}
/
cancelUrl
Get Payflow Cancel URL
curl --request GET \
  --url https://localhost:44371/api/internal/transactionPayflow/{id}/cancelUrl
{
  "type": "<string>",
  "title": "<string>",
  "status": 123,
  "detail": "<string>",
  "instance": "<string>"
}

Description

Retrieves the stored cancel URL for a Payflow Express Checkout transaction and redirects the user agent to it. This is used by PayPal to redirect users back to the merchant site when they cancel the payment process.

Input

  • Path Parameter: id (guid, required) — Transaction identifier.
  • Query Parameter: payerId (string, required) — Payer identifier provided by PayPal.

Output

HTTP 302 redirect to the stored cancel URL.

Example Request

GET /internal/payflow/transactions/{id}/cancel?payerId={payerId}

Errors

  • 404 Not Found — No cancel URL is configured for the transaction.
  • 500 Internal Server Error — Unexpected server error when retrieving the cancel URL.

Notes

  • This is an internal endpoint used by PayPal Payflow redirects.
  • The redirect occurs automatically without user interaction.

Path Parameters

id
string<guid>
required

The unique identifier of the transaction.

Query Parameters

payerId
string | null

The payer identifier provided by PayPal.

Response

Redirects the user agent to the stored cancel URL.