houdini
houdini copied to clipboard
[FEATURE] StripeTransaction events
StripeTransactions are the business object equivalent of our current Stripe integration. They represent a Charge on Stripe as well as any associated Disputes or Refunds. Traditionally, to create them we have to call InsertDonation.with_stripe, InsertRecurringDonation.with_stripe or InsertTickets.create (with Stripe payment information).
They are a type of "subtransaction".
The events are:
- [x] #626
- [ ] #627
An example of a stripe_transaction object is:
{
"id": "stripetrx_ihteiwoaht",
"object": "stripe_transaction",
"type": "subtransaction",
"initial_amount": {
"cents": 5419,
"currency": "usd"
},
"net_amount": {
"cents": 5419,
"currency": "usd"
},
"payments": [
{
"id": "stripechrg_ierowehtn",
"object": "stripe_charge",
"type": "payment"
},
{
"id": "striperef_iotathw",
"object": "stripe_refund",
"type": "payment"
},
{
"id": "stripedisp_34n451",
"object": "stripe_dispute",
"type": "payment"
},
{
"id": "striperef_io",
"object": "stripe_refund",
"type": "payment"
}
],
"created": 2402810944,
"supporter": 2145,
"nonprofit": 35194,
"transaction": "trx_515nI"
}