Skip to content

Commit

Permalink
fix(medusa-payment-manual): Add missing update method (#2254)
Browse files Browse the repository at this point in the history
  • Loading branch information
olivermrbl authored Oct 4, 2022
1 parent 2ae8fab commit 1024ac1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/shaggy-needles-raise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"medusa-payment-manual": patch
---

fix(medusa-payment-manual): Add missing update method
10 changes: 10 additions & 0 deletions packages/medusa-payment-manual/src/services/manual-payment.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,16 @@ class ManualPaymentService extends PaymentService {
return sessionData.data
}

/**
.
* @param {object} sessionData - payment session data.
* @param {object} update - payment session update data.
* @returns {object} existing data merged with update data
*/
async updatePaymentData(sessionData, update) {
return { ...sessionData.data, ...update.data }
}

async deletePayment() {
return
}
Expand Down

0 comments on commit 1024ac1

Please sign in to comment.