Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
commerce_stripe-3079832
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
commerce_stripe-3079832
Commits
b3fd6829
Commit
b3fd6829
authored
7 years ago
by
Erik Peterson
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#2922329
: Use Auth+Capture if upgrading and no option was set
parent
40c97558
No related branches found
Branches containing commit
Tags
7.x-3.0-alpha3
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
commerce_stripe.module
+4
-2
4 additions, 2 deletions
commerce_stripe.module
with
4 additions
and
2 deletions
commerce_stripe.module
+
4
−
2
View file @
b3fd6829
...
...
@@ -1755,7 +1755,8 @@ function commerce_stripe_void_access($order, $transaction) {
* Returns TRUE if capture is set & FALSE for auth only.
*/
function
_commerce_stripe_get_txn_capture_bool
(
$payment_method
,
$pane_values
)
{
$txn_type
=
$payment_method
[
'settings'
][
'txn_type'
];
$txn_type
=
!
empty
(
$payment_method
[
'settings'
][
'txn_type'
])
?
$payment_method
[
'settings'
][
'txn_type'
]
:
COMMERCE_CREDIT_AUTH_CAPTURE
;
// This handles the case when we are in the payment terminal. The
// $pane_values contains which type of transaction chosen
if
(
!
empty
(
$pane_values
[
'txn_type'
]))
{
...
...
@@ -1772,7 +1773,8 @@ function _commerce_stripe_get_txn_capture_bool($payment_method, $pane_values) {
return
FALSE
;
}
}
return
NULL
;
// Return TRUE by default.
return
TRUE
;
}
/**
...
...
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