uniform
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
||||
|
||||
"git.k6n.net/mats/go-cart-actor/pkg/cart"
|
||||
"git.k6n.net/mats/go-cart-actor/pkg/checkout"
|
||||
"git.k6n.net/mats/platform/conv"
|
||||
"git.k6n.net/mats/platform/httpclient"
|
||||
"git.k6n.net/mats/platform/tax"
|
||||
adyenCheckout "github.com/adyen/adyen-go-api-library/v21/src/checkout"
|
||||
@@ -228,7 +229,7 @@ func defaultAdyenTaxRate(tp tax.Provider, country string) int64 {
|
||||
|
||||
func GetCheckoutMetaFromRequest(r *http.Request) *CheckoutMeta {
|
||||
host := getOriginalHost(r)
|
||||
country := getCountryFromHost(host)
|
||||
country := conv.CountryFromHost(host)
|
||||
siteUrl := fmt.Sprintf("%s://%s", getScheme(r), host)
|
||||
if checkoutPublicURL != "" {
|
||||
siteUrl = checkoutPublicURL
|
||||
|
||||
Reference in New Issue
Block a user