-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #427 from Adyen/feature/AD-278-
AD-278 Implement Support for Redirect Payment Methods and 3D Secure i…
- Loading branch information
Showing
7 changed files
with
65 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
adyenocc/src/com/adyen/commerce/utils/WebServicesBaseUrlResolver.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.adyen.commerce.utils; | ||
|
||
import de.hybris.platform.servicelayer.config.ConfigurationService; | ||
|
||
public class WebServicesBaseUrlResolver { | ||
private ConfigurationService configurationService; | ||
|
||
|
||
public String getOCCBaseUrl(final boolean isSecure) { | ||
String baseUrlKey = "webroot.commercewebservices." + (isSecure ? "https" : "http"); | ||
return configurationService.getConfiguration().getString(baseUrlKey, ""); | ||
} | ||
|
||
public void setConfigurationService(ConfigurationService configurationService) { | ||
this.configurationService = configurationService; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters