fix(medusa-payment-manual): Correct wrongly used input data (#2979)
This commit is contained in:
1 parent
3308766389
commit
a2df11fc10
2 files changed
+9
-4
No files matched your search
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"medusa-payment-manual": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix(medusa-payment-manual): Correct wrongly used input data
|
||||||
@@ -53,11 +53,11 @@ class ManualPaymentService extends PaymentService {
|
|||||||
* @returns {object} same data
|
* @returns {object} same data
|
||||||
*/
|
*/
|
||||||
async updatePayment(sessionData) {
|
async updatePayment(sessionData) {
|
||||||
return sessionData.data
|
return sessionData
|
||||||
}
|
}
|
||||||
|
|
||||||
async updatePaymentNew(sessionData) {
|
async updatePaymentNew(sessionData) {
|
||||||
return sessionData.data
|
return sessionData
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -67,7 +67,7 @@ class ManualPaymentService extends PaymentService {
|
|||||||
* @returns {object} existing data merged with update data
|
* @returns {object} existing data merged with update data
|
||||||
*/
|
*/
|
||||||
async updatePaymentData(sessionData, update) {
|
async updatePaymentData(sessionData, update) {
|
||||||
return { ...sessionData.data, ...update.data }
|
return { ...sessionData, ...update.data }
|
||||||
}
|
}
|
||||||
|
|
||||||
async deletePayment() {
|
async deletePayment() {
|
||||||
@@ -85,7 +85,7 @@ class ManualPaymentService extends PaymentService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the data currently held in a status
|
* Returns the data currently held in a status
|
||||||
* @param {object} paymentData - payment method data from cart
|
* @param {object} session - payment method data from cart
|
||||||
* @returns {object} the current data
|
* @returns {object} the current data
|
||||||
*/
|
*/
|
||||||
async getPaymentData(session) {
|
async getPaymentData(session) {
|
||||||
|
|||||||
Reference in new issue
Block a user