Skip to content

Commit

Permalink
Merge pull request #229 from OXID-eSales/PSPAYPAL-702_NoteToPayer
Browse files Browse the repository at this point in the history
fix wrong Param-Name
  • Loading branch information
dmitriivolkhinoxid authored Oct 27, 2023
2 parents 346bf2f + d0035fa commit 1b9289e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [2.3.3] - 2023-??-??

- [0007549](https://bugs.oxid-esales.com/view.php?id=7549): Optional field in shop admin -> refund "Note to buyer" is transmitted to PayPal

## [2.3.2] - 2023-10-05

- [0007537](https://bugs.oxid-esales.com/view.php?id=7537): Show PayNow-Button on PP-Standard instead of Continue-Button
Expand Down
2 changes: 1 addition & 1 deletion metadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
'en' => 'Use of the online payment service from PayPal. Documentation: <a href="https://docs.oxid-esales.com/modules/paypal-checkout/en/latest/" target="_blank">PayPal Checkout</a>'
],
'thumbnail' => 'out/img/paypal.png',
'version' => '2.3.2',
'version' => '2.3.3-rc.1',
'author' => 'OXID eSales AG',
'url' => 'https://www.oxid-esales.com',
'email' => 'info@oxid-esales.com',
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/Admin/PayPalOrderController.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ public function refund(): void
$refundAmount = preg_replace("/[\,\.](\d{3})/", "$1", $refundAmount);
$invoiceId = $request->getRequestEscapedParameter('invoiceId');
$refundAll = $request->getRequestEscapedParameter('refundAll');
$noteToPayer = $request->getRequestParameter('noteToPayer');
$noteToPayer = $request->getRequestEscapedParameter('noteToPayer');

/** @var Order $order */
$order = $this->getOrder();
Expand Down
4 changes: 2 additions & 2 deletions views/admin/tpl/oscpaypalorder.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@
<td><input type="text" id="invoiceId" name="invoiceId" maxlength="127"></td>
</tr>
<tr>
<td><label for="noteToBuyer">[{oxmultilang ident="OSC_PAYPAL_NOTE_TO_BUYER"}]</label></td>
<td><textarea id="noteToBuyer" name="noteToBuyer" maxlength="255"></textarea></td>
<td><label for="noteToPayer">[{oxmultilang ident="OSC_PAYPAL_NOTE_TO_BUYER"}]</label></td>
<td><textarea id="noteToPayer" name="noteToPayer" maxlength="255"></textarea></td>
</tr>
<tr>
<td><label for="refundAll">[{oxmultilang ident="OSC_PAYPAL_REFUND_ALL"}]</label></td>
Expand Down

0 comments on commit 1b9289e

Please sign in to comment.