Skip to content

Instantly share code, notes, and snippets.

@ziyan-junaideen
Last active August 13, 2020 16:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ziyan-junaideen/147aa9c8b86ca4128d002eb81c7a3966 to your computer and use it in GitHub Desktop.
Save ziyan-junaideen/147aa9c8b86ca4128d002eb81c7a3966 to your computer and use it in GitHub Desktop.
{
"data": {
"type": "donations",
"id": "123456",
"attributes": {
"formatted-amount": "$100.00",
"amount": 10000,
"comments": "Test Donation",
"recurring": true,
"frequency": 0,
"state": "scheduled",
"completed-at": null,
"next-execution": "2018-01-14T10:30:00-08:00",
"stopped-at": null,
"paused-until": null,
"created-at": "2018-01-14T09:47:37-08:00",
"updated-at": "2018-01-14T09:50:35-08:00"
},
"relationships": {
"created-by": {},
"donor": {},
"funds": {}
}
}
}
{
"data": {
"type": "transactions",
"id": "940989",
"attributes": {
"type": "online",
"amount": 20000,
"formatted-amount": "$200.00",
"state": "Pending",
"success": true,
"result": "approved",
"error-message": null,
"payment-kind": "card",
"payment-type": "visa",
"payment-account": "2224",
"created-at": "2018-01-29T07:10:50-08:00",
"updated-at": "2018-01-29T07:10:52-08:00",
"settled-at": null
},
"relationships": {
"donation": {},
"donor": {},
"funds": {}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment