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
24a19fff
Commit
24a19fff
authored
3 years ago
by
mattwire
Browse files
Options
Downloads
Patches
Plain Diff
Fix
#306
Can't pay for event with more then one participant
parent
028f1f66
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docs/releasenotes.md
+2
-1
2 additions, 1 deletion
docs/releasenotes.md
info.xml
+1
-1
1 addition, 1 deletion
info.xml
js/civicrm_stripe.js
+4
-2
4 additions, 2 deletions
js/civicrm_stripe.js
with
7 additions
and
4 deletions
docs/releasenotes.md
+
2
−
1
View file @
24a19fff
...
...
@@ -9,7 +9,7 @@ Releases use the following numbering system:
*
**[BC]**
: Items marked with [BC] indicate a breaking change that will require updates to your code if you are using that code in your extension.
## Release 6.6 (not yet released 2021-0
4-10
)
## Release 6.6 (not yet released 2021-0
5-09
)
**Requires mjwshared (Payment Shared) 1.0**
**Access AJAX API permission is required**
for all users that make payments using Stripe (including the anonymous user).
...
...
@@ -34,6 +34,7 @@ Make sure you update your CMS user roles to include this permission.
*
Make more javascript strings translatable.
*
Disable billing fields by default.
*
Add 6.6 upgrade message to system checks.
*
Fix
[
#306
](
https://lab.civicrm.org/extensions/stripe/-/issues/306
)
Can't pay for event with more then one participant.
## Release 6.5.8
...
...
This diff is collapsed.
Click to expand it.
info.xml
+
1
−
1
View file @
24a19fff
...
...
@@ -15,7 +15,7 @@
<author>
Matthew Wire (MJW Consulting)
</author>
<email>
mjw@mjwconsult.co.uk
</email>
</maintainer>
<releaseDate>
2021-0
4-12
</releaseDate>
<releaseDate>
2021-0
5-09
</releaseDate>
<version>
6.6-dev
</version>
<develStage>
beta
</develStage>
<compatibility>
...
...
This diff is collapsed.
Click to expand it.
js/civicrm_stripe.js
+
4
−
2
View file @
24a19fff
...
...
@@ -200,12 +200,14 @@
// For recur, additional participants we do NOT know the final amount so must create a paymentMethod and only create the paymentIntent
// once the form is finally submitted.
// We should never get here with amount=0 as we should be doing a "nonStripeSubmit()" instead. This may become needed when we save cards
if
(
CRM
.
payment
.
getIsRecur
()
||
CRM
.
payment
.
isEventAdditionalParticipants
()
||
(
CRM
.
payment
.
getTotalAmount
()
===
0.0
))
{
var
totalAmount
=
CRM
.
payment
.
getTotalAmount
();
if
(
totalAmount
)
{
totalAmount
=
totalAmount
.
toFixed
(
2
);
}
if
(
CRM
.
payment
.
getIsRecur
()
||
CRM
.
payment
.
isEventAdditionalParticipants
()
||
(
totalAmount
===
null
))
{
CRM
.
api3
(
'
StripePaymentintent
'
,
'
createorupdate
'
,
{
stripe_intent_id
:
createPaymentMethodResult
.
paymentMethod
.
id
,
description
:
document
.
title
,
payment_processor_id
:
CRM
.
vars
.
stripe
.
id
,
amount
:
CRM
.
payment
.
getTotalAmount
().
toFixed
(
2
)
,
amount
:
totalAmount
,
currency
:
CRM
.
payment
.
getCurrency
(
CRM
.
vars
.
stripe
.
currency
),
status
:
'
payment_method
'
,
csrfToken
:
CRM
.
vars
.
stripe
.
csrfToken
,
...
...
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