Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor 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
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
fb03643f
Commit
fb03643f
authored
9 years ago
by
Juanjo Menent
Browse files
Options
Downloads
Plain Diff
Merge pull request #3850 from frederic34/paypal
Translation in paypal lib
parents
c0961141
22d1cf86
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
htdocs/langs/en_US/paypal.lang
+6
-0
6 additions, 0 deletions
htdocs/langs/en_US/paypal.lang
htdocs/paypal/lib/paypal.lib.php
+5
-5
5 additions, 5 deletions
htdocs/paypal/lib/paypal.lib.php
htdocs/public/paypal/paymentok.php
+5
-5
5 additions, 5 deletions
htdocs/public/paypal/paymentok.php
with
16 additions
and
10 deletions
htdocs/langs/en_US/paypal.lang
+
6
−
0
View file @
fb03643f
...
...
@@ -23,3 +23,9 @@ PAYPAL_PAYONLINE_SENDEMAIL=EMail to warn after a payment (success or not)
ReturnURLAfterPayment=Return URL after payment
ValidationOfPaypalPaymentFailed=Validation of Paypal payment failed
PaypalConfirmPaymentPageWasCalledButFailed=Payment confirmation page for Paypal was called by Paypal but confirmation failed
SetExpressCheckoutAPICallFailed=SetExpressCheckout API call failed.
DoExpressCheckoutPaymentAPICallFailed=DoExpressCheckoutPayment API call failed.
DetailedErrorMessage=Detailed Error Message
ShortErrorMessage=Short Error Message
ErrorCode=Error Code
ErrorSeverityCode=Error Severity Code
This diff is collapsed.
Click to expand it.
htdocs/paypal/lib/paypal.lib.php
+
5
−
5
View file @
fb03643f
...
...
@@ -406,11 +406,11 @@ function print_paypal_redirect($paymentAmount,$currencyCodeType,$paymentType,$re
$ErrorLongMsg
=
urldecode
(
$resArray
[
"L_LONGMESSAGE0"
]);
$ErrorSeverityCode
=
urldecode
(
$resArray
[
"L_SEVERITYCODE0"
]);
echo
"
SetExpressCheckout
API
c
all
f
ailed. <br>
\n
"
;
echo
"
Detailed
Error
Message: "
.
$ErrorLongMsg
.
"
<br>
\n
"
;
echo
"
Short
Error
Message: "
.
$ErrorShortMsg
.
"
<br>
\n
"
;
echo
"
Error
Code: "
.
$ErrorCode
.
"
<br>
\n
"
;
echo
"
Error
Severity
Code: "
.
$ErrorSeverityCode
.
"
<br>
\n
"
;
echo
$langs
->
trans
(
'
SetExpressCheckoutAPI
C
all
F
ailed
'
)
.
"
<br>
\n
"
;
echo
$langs
->
trans
(
'
DetailedErrorMessage
'
)
.
"
: "
.
$ErrorLongMsg
.
"<br>
\n
"
;
echo
$langs
->
trans
(
'
ShortErrorMessage
'
)
.
"
: "
.
$ErrorShortMsg
.
"<br>
\n
"
;
echo
$langs
->
trans
(
'
ErrorCode
'
)
.
"
: "
.
$ErrorCode
.
"<br>
\n
"
;
echo
$langs
->
trans
(
'
ErrorSeverityCode
'
)
.
"
: "
.
$ErrorSeverityCode
.
"<br>
\n
"
;
}
}
...
...
This diff is collapsed.
Click to expand it.
htdocs/public/paypal/paymentok.php
+
5
−
5
View file @
fb03643f
...
...
@@ -224,11 +224,11 @@ if ($PAYPALTOKEN)
$ErrorLongMsg
=
urldecode
(
$resArray
[
"L_LONGMESSAGE0"
]);
$ErrorSeverityCode
=
urldecode
(
$resArray
[
"L_SEVERITYCODE0"
]);
echo
"
DoExpressCheckoutPayment
API
c
all
f
ailed
.
<br>
\n
"
;
echo
"
Detailed
Error
Message: "
.
$ErrorLongMsg
.
"<br>
\n
"
;
echo
"
Short
Error
Message: "
.
$ErrorShortMsg
.
"<br>
\n
"
;
echo
"
Error
Code: "
.
$ErrorCode
.
"<br>
\n
"
;
echo
"
Error
Severity
Code: "
.
$ErrorSeverityCode
.
"<br>
\n
"
;
echo
$langs
->
trans
(
'
DoExpressCheckoutPaymentAPI
C
all
F
ailed
'
)
.
"
<br>
\n
"
;
echo
$langs
->
trans
(
'
DetailedErrorMessage
'
)
.
"
: "
.
$ErrorLongMsg
.
"<br>
\n
"
;
echo
$langs
->
trans
(
'
ShortErrorMessage
'
)
.
"
: "
.
$ErrorShortMsg
.
"<br>
\n
"
;
echo
$langs
->
trans
(
'
ErrorCode
'
)
.
"
: "
.
$ErrorCode
.
"<br>
\n
"
;
echo
$langs
->
trans
(
'
ErrorSeverityCode
'
)
.
"
: "
.
$ErrorSeverityCode
.
"<br>
\n
"
;
if
(
$mysoc
->
email
)
echo
"
\n
Please, send a screenshot of this page to "
.
$mysoc
->
email
.
"<br>
\n
"
;
...
...
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