status is terminal. This endpoint, not the client return URL, is the authoritative outcome.succeeded -> paid AND the press release was published (invoice sent). Showfailed -> the payment did not go through (declined, abandoned, SCA failed).refunded -> paid, but the publish failed server-side, so the payment wasAuthorization: Bearer ********************offline_access-Offline accessopenid-OpenIDprofile-Profileemail-Emailcurl --location 'https://api.belga.press/belgapress/api/payments/' \
--header 'Authorization: Bearer <token>'{
"id": "pay_3Nf1Qe2eZvKYlo2C",
"resourceType": "press_release",
"resourceId": "7b2c1e90-9c1a-4f3e-bf2a-2f5d9a0c1d34",
"status": "pending",
"amount": {
"amount": 49500,
"currency": "EUR"
},
"clientSecret": "cs_test_a1b2c3_secret_x9y8z7",
"paymentMethodTypes": [
"card",
"bancontact"
],
"invoiceSent": false,
"refundId": "string",
"failureReason": "string",
"createdAt": "2019-08-24T14:15:22.123Z",
"updatedAt": "2019-08-24T14:15:22.123Z"
}