# Activate Paypal payment
plugin.tx_p123_pi.basket.order.options.3 {
1 {
typeCount.stdWrap.wrap = |+1
typeCount.prioriCalc = intval
label.setCurrent {
cObject = IMAGE
cObject.file = EXT:p123paypal/res/paypal-logo-de-100px.png
cObject.altText.lang.en = Checkout with Paypal - Faster. Safer. Easier
cObject.altText.lang.de = Sicher und einfach bezahlen mit Paypal
}
label.lang.en := appendString( || {current:1})
label.lang.de := appendString( || {current:1})
label.override.lang.en := appendString( |*| {current:1})
label.override.lang.de := appendString( |*| {current:1})
label.insertData = 1
value := appendString( || 9)
value.override := appendString( |*| 9)
}
25 {
type = HIDDEN
name = paypalpayment
value = 1
depend = local:payment:9
required.lang.en = Please pay with paypal
required.lang.de = Bitte bei Paypal bezahlen
required.if.isTrue.data = register:tx_p123_pi[{$plugin.tx_p123_pi.sesName}][Paypal][Token]
required.if.isFalse.data = register:tx_p123_pi[{$plugin.tx_p123_pi.sesName}][Paypal][TransactionID]
}
26 {
type = LABEL
name = paypalhint
depend = local:payment:9
label.lang.en = You will be redirected to Paypal after clicking „Fee required order“.
We will debit your Paypal account first after confirming the order.
label.lang.de = Du wirst nach Klicken des Buttons „Zahlungspflichtig bestellen“ zu Paypal weitergeleitet.
Die Abbuchung von Deinem Paypal-Konto erfolgt erst nach Bestätigung des Auftrages.
}
}
# Configuration for the plugin "paypal_pi1"
plugin.tx_p123paypal_pi1 {
username = {$plugin.tx_p123paypal_pi.username}
password = {$plugin.tx_p123paypal_pi.password}
signature = {$plugin.tx_p123paypal_pi.signature}
mode = {$plugin.tx_p123paypal_pi.mode}
paypalUrl = {$plugin.tx_p123paypal_pi.paypalUrl}
currencyCode = {$plugin.tx_p123paypal_pi.currencyCode}
paymentAction = {$plugin.tx_p123paypal_pi.paymentAction}
}
# Configuration for the plugin "paypal_pi2"
plugin.tx_p123paypal_pi2 {
localCode.data = TSFE:lang
cancelUrl {
typolink.parameter = {$plugin.tx_p123paypal_pi.cancelUrl}
typolink.returnLast = url
}
returnUrl {
typolink.parameter.data = fullRootline: 1,uid
typolink.parameter.override = {$plugin.tx_p123paypal_pi.returnUrl}
typolink.parameter.wrap = |,131
typolink.additionalParams = &hash=
typolink.additionalParams.dataWrap = |{GP:hash}
typolink.returnLast = url
}
orderPrefix = {$plugin.tx_p123paypal_pi.orderPrefix}
buyerEmail.data = register:tx_p123_pi[{$plugin.tx_p123_pi.sesName}][basket][email]
brandName = {$plugin.tx_p123paypal_pi.brandName}
pageStyle = {$plugin.tx_p123paypal_pi.pageStyle}
headerImage {
cObject = IMG_RESOURCE
cObject.file = {$plugin.tx_p123paypal_pi.headerImage}
cObject.stdWrap.required = 1
cObject.stdWrap.wrap = {$config.baseurl}|
}
headerBorderColor = {$plugin.tx_p123paypal_pi.headerBorderColor}
headerBackColor = {$plugin.tx_p123paypal_pi.headerBackColor}
cartBackColor = {$plugin.tx_p123paypal_pi.cartBackColor}
cartBorderColor = {$plugin.tx_p123paypal_pi.cartBorderColor}
logoImage {
cObject = IMG_RESOURCE
cObject.file = {$plugin.tx_p123paypal_pi.logoImage}
cObject.stdWrap.required = 1
cObject.stdWrap.wrap = {$config.baseurl}|
}
displayShipping = 1
displayShipping.if {
value = 0
isGreaterThan.cObject = COA
isGreaterThan.cObject {
10 = TEXT
10.preUserFunc = tx_p123_pi->hook
10.preUserFunc {
includeObj = db,sid,sqlWhere,portal,hash,sesName,motifDB,basketDB,query,basket,conf,media,mediaHash,periodData
funcName = basket_find
dontIncludeSetup = 1
pos = additional
ext = p123designer
}
20 < .10
20.preUserFunc.pos = spare
20.wrap = +|
30 < .10
30.preUserFunc.pos = dina1
30.wrap = +|
40 < .10
40.preUserFunc.pos = expose
40.wrap = +|
stdWrap.prioriCalc = intval
}
}
shipping {
name {
setCurrent.data = register:tx_p123_pi[{$plugin.tx_p123_pi.sesName}][basket][lastname]
setCurrent.dataWrap = |, {register:tx_p123_pi[{$plugin.tx_p123_pi.sesName}][basket][firstname]}
current = 1
override.if.isTrue.data = register:tx_p123_pi[{$plugin.tx_p123_pi.sesName}][basket][delivery]
override.data = register:tx_p123_pi[{$plugin.tx_p123_pi.sesName}][basket][delivery_lastname]
override.dataWrap = |, {register:tx_p123_pi[{$plugin.tx_p123_pi.sesName}][basket][delivery_firstname]}
}
address {
data = register:tx_p123_pi[{$plugin.tx_p123_pi.sesName}][basket][address]
override.if.isTrue.data = register:tx_p123_pi[{$plugin.tx_p123_pi.sesName}][basket][delivery]
override.data = register:tx_p123_pi[{$plugin.tx_p123_pi.sesName}][basket][delivery_address]
}
zip {
data = register:tx_p123_pi[{$plugin.tx_p123_pi.sesName}][basket][zip]
override.if.isTrue.data = register:tx_p123_pi[{$plugin.tx_p123_pi.sesName}][basket][delivery]
override.data = register:tx_p123_pi[{$plugin.tx_p123_pi.sesName}][basket][delivery_zip]
}
city {
data = register:tx_p123_pi[{$plugin.tx_p123_pi.sesName}][basket][city]
override.if.isTrue.data = register:tx_p123_pi[{$plugin.tx_p123_pi.sesName}][basket][delivery]
override.data = register:tx_p123_pi[{$plugin.tx_p123_pi.sesName}][basket][delivery_city]
}
country {
data = register:tx_p123_pi[{$plugin.tx_p123_pi.sesName}][basket][country]
listNum = last
listNum.splitChar = [
substring = 0,2
}
}
}
# Include paypal payment into checkout_pi2
p123checkout_pi2.10.summary.preUserFunc {
element.if.isTrue.if.value.wrap = |,paypalpayment,paypalhint
basket.order.options.3.1.label.setCurrent.override = Paypal
}
# Include paypal payment into checkout_pi4
plugin.tx_p123checkout_pi4 {
paymentHooks.9 < plugin.tx_p123paypal_pi2
paymentHooks.9 = tx_p123paypal_pi2->setExpressCheckout
paymentHooks.9 {
if.isFalse.data = register:tx_p123_pi[{$plugin.tx_p123_pi.sesName}][Paypal][TransactionID]
if.value = 9
if.equals.data = register:tx_p123_pi[{$plugin.tx_p123_pi.sesName}][basket][payment]
noHeaderredirect = 1
}
mailTemplate.html.subparts.tx_p123checkout_pi2 {
element.if.isTrue.if.value.wrap = |,paypalpayment,paypalhint
basket.order.options.3.1.label.setCurrent.override = Paypal
}
mailTemplate.text.subparts.tx_p123checkout_pi2 {
element.if.isTrue.if.value.wrap = |,paypalpayment,paypalhint
basket.order.options.3.1.label.setCurrent.override = Paypal
}
mail.attachment.10.file.postUserFunc.cObject.subparts.tx_p123checkout_pi2 {
element.if.isTrue.if.value.wrap = |,paypalpayment,paypalhint
}
orderArr.Zahlungsart.Paypal._attributes {
__preventParser = 1
__preventParser.if.value = 9
__preventParser.if.equals.data = register:tx_p123_pi[{$plugin.tx_p123_pi.sesName}][basket][payment]
__preventParser.if.negate = 1
Token.data = register:tx_p123_pi[{$plugin.tx_p123_pi.sesName}][Paypal][Token]
PayerID.data = register:tx_p123_pi[{$plugin.tx_p123_pi.sesName}][Paypal][PayerID]
Payer.data = register:tx_p123_pi[{$plugin.tx_p123_pi.sesName}][Paypal][Payer]
TransactionID.data = register:tx_p123_pi[{$plugin.tx_p123_pi.sesName}][Paypal][TransactionID]
TransactionType.data = register:tx_p123_pi[{$plugin.tx_p123_pi.sesName}][Paypal][TransactionType]
PaymentType.data = register:tx_p123_pi[{$plugin.tx_p123_pi.sesName}][Paypal][PaymentType]
PaymentDate.data = register:tx_p123_pi[{$plugin.tx_p123_pi.sesName}][Paypal][PaymentDate]
Ack.data = register:tx_p123_pi[{$plugin.tx_p123_pi.sesName}][Paypal][Ack]
CorrelationID.data = register:tx_p123_pi[{$plugin.tx_p123_pi.sesName}][Paypal][CorrelationID]
Version.data = register:tx_p123_pi[{$plugin.tx_p123_pi.sesName}][Paypal][Version]
Build.data = register:tx_p123_pi[{$plugin.tx_p123_pi.sesName}][Paypal][Build]
}
}
# Configuration for the page "paypal_pi2->setExpressCheckout"
p123paypal_pi2 = PAGE
p123paypal_pi2 {
typeNum = 130
config {
disableCharsetHeader = 1
disableAllHeaderCode = 1
disableImgBorderAttr = 0
no_cache = 1
doctype = 0
xhtmlDoctype = 0
xhtml_cleaning = 0
noPageTitle = 1
debug = 0
}
10 = setExpressCheckout
}
# Configuration for the plugin "paypal_pi3"
plugin.tx_p123paypal_pi3 {
checkShipping < plugin.tx_p123paypal_pi2.displayShipping
orderPrefix < plugin.tx_p123paypal_pi2.orderPrefix
basketUrl {
typolink.parameter = {$plugin.tx_p123paypal_pi.basketUrl}
typolink.section = ready:1/hash:###HASH###
typolink.returnLast = url
}
}
# Configuration for the page "paypal_pi3->doExpressCheckout"
p123paypal_pi3 < p123paypal_pi2
p123paypal_pi3 {
typeNum = 131
10 = doExpressCheckout
}