add payment link func.
This commit is contained in:
@@ -223,7 +223,14 @@ class PaymentProviderService extends BaseService {
|
||||
*/
|
||||
retrieveProvider(providerId) {
|
||||
try {
|
||||
const provider = this.container_[`pp_${providerId}`]
|
||||
let provider
|
||||
if (providerId === "system") {
|
||||
console.log(this.container_)
|
||||
provider = this.container_[`systemPaymentProviderService`]
|
||||
} else {
|
||||
provider = this.container_[`pp_${providerId}`]
|
||||
}
|
||||
|
||||
return provider
|
||||
} catch (err) {
|
||||
throw new MedusaError(
|
||||
|
||||
Reference in New Issue
Block a user