hotfix: endpoint

This commit is contained in:
Sebastian Rindom
2021-06-23 13:30:28 +02:00
parent d6f0bf50ef
commit aad49ea355

View File

@@ -60,7 +60,14 @@ class AdyenService extends BaseService {
config,
})
client.setEnvironment(this.options_.environment)
if (this.options_.liveEndpointPrefix) {
client.setEnvironment(
this.options_.environment,
this.options_.liveEndpointPrefix
)
} else {
client.setEnvironment(this.options_.environment)
}
return client
}