Skip to content

Commit

Permalink
Merge pull request #1531 from stripe/richardm-merge-master
Browse files Browse the repository at this point in the history
Merge master into beta
  • Loading branch information
richardm-stripe authored Jul 19, 2023
2 parents 5a2f527 + 05be1bc commit 46bce75
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ApiRequestor.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public function request($method, $url, $params = null, $headers = null, $apiMode
}

/**
* @param 'delete'|'get'|'post' $method
* @param 'delete'|'get'|'post' $method
* @param string $url
* @param callable $readBodyChunkCallable
* @param null|array $params
Expand Down
5 changes: 5 additions & 0 deletions lib/PaymentIntent.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,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 46bce75

Please sign in to comment.