#defekt7x

1 messages · Page 1 of 1 (latest)

vapid nexusBOT
trim summit
#

As far as I know, you shouldn't be getting charge.refunded on cancelled Payment Intents. Are you 100% certain that that's what is causing the event?

orchid loom
#

Yes, I got payment_intent.canceled and charge.refunded events that came in at the same exact timestamp when I canceled that uncaptured payment

trim summit
#

I get payment_intent.canceled, but I don't get charge.refunded.

Can you provide the ID for the charge.refunded Event that happened?

orchid loom
#

ch_3MeMc8Dy0Jw5TDOC0HBpazl1

#

Sorry. event ID is: evt_3MeMc8Dy0Jw5TDOC0R7mxHjZ

trim summit
#

Ahhhh, okay. I didn't realize you were on an older API version. If you upgraded, you wouldn't have the charge.refunded event as far as I can tell. Let me double-check though

#

Yeah, that looks like it is from an older API version, so you could upgrade to stop that event from firing, otherwise you would need to code your handler to ignore authorization cancelations

orchid loom
#

I see. Ok that makes sense. Are there any breaking changes I need to be aware of when upgrading?

trim summit
#

Additionally there may be more useful information on Github changelogs on a library-by-library (language_by_language) basis

deft mortar
#

Howdy - stepping in here for @trim summit who has to step away soon

#

I'll also mention that you really shouldn't be doing authorizations like this when you don't intend to collect payment

#

Using our newer APIs, you can authenticate cards without collecting payment by using Setup Intents

orchid loom
#

Thanks, @deft mortar - yeah, I paused this method for the time being while I was investigating some of these quirks. It seemed like a decent method at the time, using test cards, but I was not aware that it would actually post to customers bank accounts, so I immediately reverted this. Will check out that link, thank you