Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
paytr_payment
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
project
paytr_payment
Merge requests
!16
Drupal 10 compatibility
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Drupal 10 compatibility
issue/paytr_payment-3467122:3467122-drupal-10-compatibility
into
9.1.x
Overview
0
Commits
1
Pipelines
0
Changes
4
Closed
durum
requested to merge
issue/paytr_payment-3467122:3467122-drupal-10-compatibility
into
9.1.x
10 months ago
Overview
0
Commits
1
Pipelines
0
Changes
4
Expand
/src/Plugin/Commerce/PaymentGateway/RedirectCheckout.php
/paytr_payment.libraries.yml
/js/paytr_payment.checkout.js
/paytr_payment.info.yml
Closes
#3467122
0
0
Merge request reports
Compare
9.1.x
9.1.x (base)
and
latest version
latest version
f7418a1c
1 commit,
10 months ago
4 files
+
8
−
6
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
js/paytr_payment.checkout.js
+
5
−
3
Options
(
function
(
$
,
Drupal
,
drupalSettings
)
{
(
function
(
$
,
Drupal
,
drupalSettings
,
once
)
{
'
use strict
'
;
Drupal
.
behaviors
.
offsiteForm
=
{
attach
:
function
(
context
)
{
let
data
=
JSON
.
parse
(
drupalSettings
.
paytr_payment_iframe
);
$
(
$
(
context
).
find
(
'
#paytr-payment-checkout
'
)).
append
(
'
<iframe src="https://www.paytr.com/odeme/guvenli/
'
+
data
.
token
+
'
" id="paytriframe" frameBorder="0" scrolling="no" style="width: 100%;"></iframe><script>iFrameResize({},
\'
#paytriframe
\'
);</script>
'
);
once
(
'
offsiteForm
'
,
'
#paytr-payment-checkout
'
,
context
).
forEach
(
function
(
element
)
{
$
(
element
).
append
(
'
<iframe src="https://www.paytr.com/odeme/guvenli/
'
+
data
.
token
+
'
" id="paytriframe" frameBorder="0" scrolling="no" style="width: 100%;"></iframe><script>iFrameResize({},
\'
#paytriframe
\'
);</script>
'
);
});
}
};
}(
jQuery
,
Drupal
,
drupalSettings
));
}(
jQuery
,
Drupal
,
drupalSettings
,
once
));
Loading