Community · Step
Refund a purchase
Give a member their money back for their newest purchase of a product, through the server's Stripe (or, in demo mode, just mark it refunded). The bot then takes back the role it gave, and the refund goes in the sales log.
payments.refund
In a flow
“When a button is clicked, refund a purchase.”
A staff Refund button on a purchase log.
What it does
Give a member their money back for their newest purchase of a product, through the server's Stripe (or, in demo mode, just mark it refunded). The bot then takes back the role it gave, and the refund goes in the sales log. It's a step: it runs when the white wire reaches it, then the flow carries on from its Then pin. It gives 2 values later steps can use. Find it under Community in the palette.
When to use it
Use it for community features: give a member their money back for their newest purchase of a product, through the server's Stripe (or, in demo mode, just mark it refunded). The bot then takes back the role it gave, and the refund goes in the sales log.
When not to
If nothing should change in Discord, a value node or a check is lighter.
Typical wiring
Sockets: settings you can wire
- Who Member
-
Whose purchase to refund: their newest one of this product. Leave unwired for the member who started the flow.
What goes there: Type it in the side panel, or wire in a member. e.g. @Alex
If it's empty: Optional. Left empty and unwired, the step runs without it.
Connects fromAccept applicationApplication infoAsk a questionAsk follow-upBoard as emojiCall the next in the queueCase createdCheck for a lineand 88 more
Values it gives
- Refunded Yes / no
-
False when there was nothing to refund. e.g. true
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toAdd a forum tagAdd onboarding questionAdd to a counterAlarms that are dueAndAnnounceAutoMod: Discord's word listsBluesky latest postand 580 more
- Amount Text
-
What was refunded, like $9.99. e.g. $9.99
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toAccept applicationAdd a forum tagAdd a labelAdd a Notion pageAdd a row to a Google SheetAdd a staff noteAdd a stickerAdd a Trello cardand 583 more