Contents
On this page
PayPal Return - Plugixa Stream
GET /plugixa-stream/v1/checkout/paypal/return
Called by the buyer’s browser, sent back by PayPal after paying, not by your code. The plugin asks PayPal, server to server, to capture the order, credits the order’s owner when PayPal confirms it, and redirects to the Watch app’s wallet.
Public: the login session may not survive the trip to PayPal. The request proves nothing by itself; only a capture PayPal completes marks the order paid.
Request
GET https://your-site.example/wp-json/plugixa-stream/v1/checkout/paypal/return?order=42
Query parameters
| Field | Type | Required | Description |
|---|---|---|---|
order |
integer |
Yes | The order id the plugin put in the return URL. |
Responses
302 Found. No body.
Location: https://your-site.example/watch/#/wallet?paid=42
For a PayPal order the redirect ends in #/wallet?paid= and the order id, whatever PayPal answered; otherwise in #/wallet. The Watch page address comes from the plugixa_stream_watch_url filter.
Errors
This endpoint has no errors of its own.
Plus the errors every endpoint can return.
Examples
curl -s -i "https://your-site.example/wp-json/plugixa-stream/v1/checkout/paypal/return?order=42"
Quick Links
Share