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
6639afb8
Commit
6639afb8
authored
1 year ago
by
mattwire
Browse files
Options
Downloads
Patches
Plain Diff
Use getErrorUrl function
parent
863d3609
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!241
Stripe Import extension
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CRM/Core/Payment/Stripe.php
+3
-3
3 additions, 3 deletions
CRM/Core/Payment/Stripe.php
with
3 additions
and
3 deletions
CRM/Core/Payment/Stripe.php
+
3
−
3
View file @
6639afb8
...
...
@@ -716,7 +716,7 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment {
}
catch
(
Exception
$e
)
{
$parsedError
=
$this
->
parseStripeException
(
'doPayment'
,
$e
);
$this
->
handleError
(
$parsedError
[
'code'
],
$parsedError
[
'message'
],
(
$propertyBag
->
has
(
'error_url'
)
?
$propertyBag
->
getCustomProperty
(
'error_url'
)
:
''
),
FALSE
);
$this
->
handleError
(
$parsedError
[
'code'
],
$parsedError
[
'message'
],
$this
->
getErrorUrl
(
$propertyBag
),
FALSE
);
}
// @fixme FROM HERE we are using $params ONLY - SET things if required ($propertyBag is not used beyond here)
...
...
@@ -754,7 +754,7 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment {
'email'
=>
$propertyBag
->
getEmail
(),
'currency'
=>
mb_strtolower
(
$propertyBag
->
getCurrency
()),
// Include this to allow redirect within session on payment failure
'error_url'
=>
$
propertyBag
->
getCustomProperty
(
'error_url'
),
'error_url'
=>
$
this
->
getErrorUrl
(
$propertyBag
),
];
// Get the Stripe Customer:
...
...
@@ -1048,7 +1048,7 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment {
}
}
catch
(
Exception
$e
)
{
$this
->
handleError
(
$e
->
getCode
(),
$e
->
getMessage
(),
$params
[
'error_url'
]);
$this
->
handleError
(
$e
->
getCode
(),
$e
->
getMessage
(),
$params
[
'error_url'
]
??
''
);
}
finally
{
// Always update the paymentIntent in the CiviCRM database for later tracking
...
...
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