Skip to content

Commit

Permalink
Add constants for payment intent cancellation reasons
Browse files Browse the repository at this point in the history
  • Loading branch information
javespi committed Jul 12, 2023
1 parent 1f5d7a9 commit 7803626
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 7803626

Please sign in to comment.