status captures the whole outcome: because a failed resource action is resolved by an automatic refund, there is no lasting "paid but not delivered" state to model separately. succeeded therefore implies the resource action (publish) also succeeded.{
"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"
}