Skip to content

Commit

Permalink
Merge pull request #1526 from javespi/add-cancellation-reasons-to-pay…
Browse files Browse the repository at this point in the history
…ment-intent

Add constants for payment intent cancellation reasons
  • Loading branch information
richardm-stripe authored Jul 19, 2023
2 parents 67d021b + e8a3ab1 commit 7648cf5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/PaymentIntent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7648cf5

Please sign in to comment.