Skip to content

Commit

Permalink
Fix PaymentIntent cancelation (#245)
Browse files Browse the repository at this point in the history
* add abandoned case to PaymentIntentCancellationReason

* remove invalid cases

* Update cancellation reason enums.

---------

Co-authored-by: Andrew Edwards <andrewangeta@gmail.com>
  • Loading branch information
Patrick-Kladek and Andrewangeta authored Feb 7, 2024
1 parent f788615 commit f9e727a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,12 +226,13 @@ public struct PaymentIntentTransferData: Codable {
}

public enum PaymentIntentCancellationReason: String, Codable {
case abandoned
case automatic
case duplicate
case failedInvoice = "failed_invoice"
case fraudulent
case requestedByCustomer = "requested_by_customer"
case failedInvoice = "failed_invoice"
case voidInvoice = "void_invoice"
case automatic
}

public enum PaymentIntentCaptureMethod: String, Codable {
Expand Down

0 comments on commit f9e727a

Please sign in to comment.