feat(medusa): Payment Collection endpoints (#2525)

This commit is contained in:
Carlos R. L. Rodrigues authored and GitHub committed 2022-11-11 18:28:45 +01:00
1 parent 27184f3878
commit 755ba90c05
58 files changed
+1190 -484

No files matched your search

@@ -20,6 +20,12 @@ class MobilePayAdyenService extends PaymentService {
return raw
}
async createPaymentNew(paymentInput) {
const raw = await this.adyenService_.createPaymentNew(paymentInput)
raw.type = "mobilepay"
return raw
}
async authorizePayment(sessionData, context) {
return this.adyenService_.authorizePayment(sessionData, context)
}
@@ -32,6 +38,10 @@ class MobilePayAdyenService extends PaymentService {
return this.adyenService_.updatePayment(data)
}
async updatePaymentNew(data, _) {
return this.adyenService_.updatePaymentNew(data)
}
async updatePaymentData(sessionData, update) {
return this.adyenService_.updatePaymentData(sessionData, update)
}