Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
capo
Stripe
Commits
6a5666ff
Commit
6a5666ff
authored
Oct 30, 2019
by
Jamie McClelland
Browse files
properly handle newer way to record trxn_id value
extensions/stripe#124
parent
d86982a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
api/v3/Stripe/Listevents.php
View file @
6a5666ff
...
...
@@ -230,6 +230,13 @@ function civicrm_api3_stripe_Listevents($params) {
if
(
$results
[
'count'
]
>
0
)
{
$item
[
'processed'
]
=
'yes'
;
}
else
{
// Newer versions of stripe store the invoice id in trxn_id.
$results
=
civicrm_api3
(
'Contribution'
,
'get'
,
array
(
'trxn_id'
=>
$item
[
'invoice'
]));
if
(
$results
[
'count'
]
>
0
)
{
$item
[
'processed'
]
=
'yes'
;
}
}
}
$out
[]
=
$item
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment