From 780362668e4eddc11c77cc0d55c95c58a7cd5bb6 Mon Sep 17 00:00:00 2001 From: Javier Espinosa Date: Wed, 12 Jul 2023 10:39:46 +0200 Subject: [PATCH] Add constants for payment intent cancellation reasons --- lib/PaymentIntent.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/PaymentIntent.php b/lib/PaymentIntent.php index 163f853bb..f7d1ed110 100644 --- a/lib/PaymentIntent.php +++ b/lib/PaymentIntent.php @@ -75,6 +75,11 @@ class PaymentIntent extends ApiResource const STATUS_REQUIRES_PAYMENT_METHOD = 'requires_payment_method'; const STATUS_SUCCEEDED = 'succeeded'; + const CANCELLATION_REASON_DUPLICATE = 'duplicate'; + const CANCELLATION_REASON_FRAUDULENT = 'fraudulent'; + const CANCELLATION_REASON_REQUESTED_BY_CUSTOMER = 'requested_by_customer'; + const CANCELLATION_REASON_ABANDONED = 'abandoned'; + /** * @param null|array $params * @param null|array|string $opts