houdini icon indicating copy to clipboard operation
houdini copied to clipboard

[FEATURE] StripeTransaction events

Open wwahammy opened this issue 4 years ago • 0 comments

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"
}

wwahammy avatar May 04 '21 19:05 wwahammy