This commit is contained in:
Sebastian Rindom
2020-07-06 11:52:16 +02:00
parent 2491bd6779
commit f9b232da54
9 changed files with 49 additions and 10 deletions
@@ -11,9 +11,12 @@ class BaseFulfillmentService extends BaseService {
super()
}
getFulfillmentOptions() {
getIdentifier() {
return this.constructor.identifier
}
getFulfillmentOptions() {}
validateFulfillmentData(data, cart) {
throw Error("validateFulfillmentData must be overridden by the child class")
}
@@ -11,6 +11,10 @@ class BasePaymentService extends BaseService {
super()
}
getIdentifier() {
return this.constructor.identifier
}
/**
* Used to create a payment to be processed with the service's payment gateway.
* @param cart {object} - the cart that the payment should cover.