microsoft / azure-api-management-monetization

MIT License
54 stars 31 forks source link

Unable to deploy the solution #7

Closed azaslonov closed 3 years ago

azaslonov commented 3 years ago

Unfortunately, I'm unable to deploy the solution, stuck with the following error:

{
    "error":{
        "code":"InvalidTemplate",
        "message":"Deployment template validation failed: 'The template parameters 'checkoutSuccessfulUrl, checkoutCancelledUrl' in the parameters file are not valid; they are not present in the original template and can therefore not be provided at deployment time. The only supported parameters for this template are 'apimServiceName, apimPublisherEmail, apimPublisherName, apimSku, apimSkuCount, appServiceHostingPlanName, appServiceName, appServiceSkuName, appServiceSkuCapacity, paymentProvider, stripeApiKey, stripePublicKey, adyenApiKey, adyenClientKey, adyenMerchantAccount, appServiceContainerImage, appServiceContainerPort, servicePrincipalClientId, servicePrincipalObjectId, servicePrincipalClientSecret, servicePrincipalTenantId, location, artifactsBaseUrl'. Please see https://aka.ms/arm-deploy/#parameter-file for usage details.'.",
        "additionalInfo":[
            {
                "type":"TemplateViolation",
                "info":{
                    "lineNumber":0,
                    "linePosition":0,
                    "path":""
                }
            }
        ]
    }
}

My parameters in the template:

        "checkoutSuccessfulUrl": {
            "value": https://localhost:3000/checkout/success
        },
        "checkoutCancelledUrl": {
            "value": https://localhost:3000/checkout/cancelled
        }

I assume these are webhooks in Stripe, so it would be awesome to provide information (in README file) on them, i.e. where to get those values for local and production environments.