Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Stripe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Extensions
Stripe
Commits
490feb41
Commit
490feb41
authored
4 years ago
by
mattwire
Browse files
Options
Downloads
Patches
Plain Diff
Fixes to Stripe.Ipn for updated library
parent
2a29046a
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!124
6.5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CRM/Core/Payment/Stripe.php
+2
-0
2 additions, 0 deletions
CRM/Core/Payment/Stripe.php
api/v3/Stripe/Ipn.php
+7
-2
7 additions, 2 deletions
api/v3/Stripe/Ipn.php
with
9 additions
and
2 deletions
CRM/Core/Payment/Stripe.php
+
2
−
0
View file @
490feb41
...
...
@@ -1119,6 +1119,8 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment {
* The "raw" data, eg. a JSON string that is saved in the civicrm_system_log.context table
* @param bool $verifyRequest
* Should we verify the request data with the payment processor (eg. retrieve it again?).
* @param null|int $emailReceipt
* Override setting of email receipt if set to 0, 1
*
* @return bool
* @throws \CRM_Core_Exception
...
...
This diff is collapsed.
Click to expand it.
api/v3/Stripe/Ipn.php
+
7
−
2
View file @
490feb41
...
...
@@ -31,7 +31,8 @@ function _civicrm_api3_stripe_Ipn_spec(&$spec) {
$spec
[
'evtid'
][
'title'
]
=
ts
(
"An event id as generated by Stripe."
);
$spec
[
'ppid'
][
'title'
]
=
ts
(
"The payment processor to use (required if using evtid)"
);
$spec
[
'noreceipt'
][
'title'
]
=
ts
(
"Set to 1 to override contribution page settings and do not send a receipt (default is off or 0). )"
);
$spec
[
'noreceipt'
][
'api.default'
]
=
0
;
$spec
[
'noreceipt'
][
'api.default'
]
=
FALSE
;
$spec
[
'noreceipt'
][
'type'
]
=
CRM_Utils_Type
::
T_BOOLEAN
;
}
/**
...
...
@@ -98,7 +99,11 @@ function civicrm_api3_stripe_Ipn($params) {
if
(
class_exists
(
'CRM_Core_Payment_StripeIPN'
))
{
try
{
$paymentProcessor
->
processPaymentNotification
(
$ppid
,
$object
,
TRUE
,
(
$params
[
'noreceipt'
]
==
1
)
?
0
:
NULL
);
$paymentProcessor
->
processPaymentNotification
(
$ppid
,
json_encode
(
$object
),
FALSE
,
(
$params
[
'noreceipt'
]
===
TRUE
)
?
0
:
NULL
);
}
catch
(
Throwable
$e
)
{
return
civicrm_api3_create_error
(
$e
->
getMessage
());
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment