# controller\_stripe\_redirect

Source: https://zotonic.com/docs/3162/controller_stripe_redirect

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

Language: en



Handle Stripe checkout callbacks.

Handle GET returns at `/stripe/ready/:payment_nr`. For `status=ok`, fetch and synchronize the Checkout Session identified by `session_id`; for `status=cancel`, ask Stripe to expire the session. Redirect the visitor to `payment_psp_done` using the resulting local payment number. The query-string status alone does not mark a payment as paid.

Generate the endpoint through its dispatch rule, for example:

```django
{% url stripe_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/3162?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/3162?language=en>)
