stripe-ruby-mock / stripe-ruby-mock

A mocking library for testing stripe ruby

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Refund does not update PaymentIntent's charge

mirceacozarev-golfgenius opened this issue · comments

Description

Creating a PaymentIntent, following by confirming it and creating a Refund does not update the charges of it. I was expecting I could see that charges.refunded is set to true, amount_refunded to equal the sum of the payment and the refunds to contain a "refund" object.

Screenshot presenting the problem

Captură de ecran din 2023-01-11 la 22 44 18

The charge is not created correctly also when an application_fee_amount is specified at the time of the intent's creation