add payment link func.

This commit is contained in:
olivermrbl
2021-02-18 13:22:55 +01:00
parent 283f8fbe54
commit c4164e4b66
12 changed files with 171 additions and 4 deletions

View File

@@ -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(