Skip to content

Commit

Permalink
Providing psp reference in the data (#1277)
Browse files Browse the repository at this point in the history
* fix: providing psp reference in the data

* fix: remove unused attributes
  • Loading branch information
amihajlovski authored Feb 25, 2025
1 parent f5ac63a commit c057df5
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ function makePartialPayment(req, res, next) {

Transaction.wrap(() => {
session.privacy.giftCardResponse = JSON.stringify({
giftCardpspReference: response.pspReference,
orderPSPReference: response.order.pspReference,
...response.order,
...response.amount,
paymentMethod: response.paymentMethod,
Expand Down Expand Up @@ -117,6 +115,7 @@ function makePartialPayment(req, res, next) {
...response.paymentMethod,
amount: response.amount,
name: giftcardBrand,
pspReference: response.pspReference,
},
orderAmount: {
currency: currentBasket.currencyCode,
Expand Down

0 comments on commit c057df5

Please sign in to comment.