Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Extensions
Redsys Payment Processor
Commits
707727bd
Unverified
Commit
707727bd
authored
Oct 17, 2018
by
rubofvil
Committed by
GitHub
Oct 17, 2018
Browse files
Update RedsysIPN.php
Replace status failed with cancelled status (to get cancelled reason avalible)
parent
09c74f9b
Changes
1
Hide whitespace changes
Inline
Side-by-side
CRM/Core/Payment/RedsysIPN.php
View file @
707727bd
...
...
@@ -72,7 +72,7 @@ class CRM_Core_Payment_RedsysIPN extends CRM_Core_Payment_BaseIPN {
}
CRM_Core_Error
::
debug_log_message
(
"Redsys IPN Response: About to cancel contr
\n
input: "
.
print_r
(
$input
,
TRUE
)
.
"
\n
ids: "
.
print_r
(
$ids
,
TRUE
)
.
"
\n
objects: "
.
print_r
(
$objects
,
TRUE
));
try
{
civicrm_api3
(
'contribution'
,
'create'
,
array
(
'id'
=>
$input
[
'contributionID'
],
'contribution_status_id'
=>
'
Fai
led'
,
'cancel_reason'
=>
$input
[
'reasonCode'
]));
civicrm_api3
(
'contribution'
,
'create'
,
array
(
'id'
=>
$input
[
'contributionID'
],
'contribution_status_id'
=>
'
Cancel
led'
,
'cancel_reason'
=>
$input
[
'reasonCode'
]
,
'cancel_date'
=>
date
(
'Y-m-d'
)
));
}
catch
(
CiviCRM_API3_Exception
$e
)
{
if
(
$e
->
getMessage
())
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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