# controller\_paypal\_redirect

Source: https://zotonic.com/docs/3173/controller_paypal_redirect

URI: https://zotonic.com/id/3173

Language: en



Handle PayPal checkout callbacks.

Handle GET returns at `/paypal/ready/:payment_nr`. Approval captures the order identified by `token`. Cancellation requires valid signed state and a matching local order, and checks the provider's current status before cancelling it. Redirect the visitor to `payment_psp_done`; the browser's query parameters alone are not proof of payment.

Generate the endpoint through its dispatch rule, for example:

```django
{% url paypal_payment_redirect payment_nr=payment_nr %}
```

This provider-facing endpoint uses the verification described above rather than an administrator login.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/3173?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/3173?language=en>)
