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
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
dcca0fd7
Commit
dcca0fd7
authored
6 years ago
by
mattwire
Browse files
Options
Downloads
Patches
Plain Diff
Fix offline (live) event payments for Wordpress
parent
edeb605a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!23
Bugfixes - detect webform correctly, fix stripe customer creation in test mode
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/release/release_notes.md
+9
-0
9 additions, 0 deletions
docs/release/release_notes.md
js/civicrm_stripe.js
+3
-2
3 additions, 2 deletions
js/civicrm_stripe.js
with
12 additions
and
2 deletions
docs/release/release_notes.md
+
9
−
0
View file @
dcca0fd7
## Release 5.4
*
Fix drupal webform detection so it doesn't generate a false positive if we also have a webform on the same page.
*
Fix Stripe create customer in test mode.
*
Fix offline (live) event payments for Wordpress.
*
Add StripeCustomer.updatestripemetadata API.
*
Add a system check for invalid API key.
*
Add StripeCustomer.delete to delete a customer from CiviCRM.
## Release 5.3.2
*
Fix retrieving email receipt parameter on stripe IPN which stopped contributions from being marked as completed.
*
Fix webhook check for wordpress so we don't get false positives when everything is configured ok.
...
...
This diff is collapsed.
Click to expand it.
js/civicrm_stripe.js
+
3
−
2
View file @
dcca0fd7
...
...
@@ -73,8 +73,9 @@ CRM.$(function($) {
$
(
document
).
ajaxComplete
(
function
(
event
,
xhr
,
settings
)
{
// /civicrm/payment/form? occurs when a payproc is selected on page
// /civicrm/contact/view/participant occurs when payproc is first loaded on event credit card payment
if
((
settings
.
url
.
match
(
"
/civicrm/payment/form?
"
))
||
(
settings
.
url
.
match
(
"
/civicrm/contact/view/participant?
"
)))
{
// On wordpress these are urlencoded
if
((
settings
.
url
.
match
(
"
civicrm(
\
/|%2F)payment(
\
/|%2F)form
"
)
!=
null
)
||
(
settings
.
url
.
match
(
"
civicrm(
\
/|
\
%2F)contact(
\
/|
\
%2F)view(
\
/|
\
%2F)participant
"
)
!=
null
))
{
// See if there is a payment processor selector on this form
// (e.g. an offline credit card contribution page).
if
(
$
(
'
#payment_processor_id
'
).
length
>
0
)
{
...
...
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