Após configurar o payment provider, ao clicar no botão 'Start Homologation Mode' em (https://pagarme.vtexcommercebeta.com.br/admin/payment-provider/#/config) e confirmar a ação. Nenhum resultado ocorre, observando a aba network do developer tools. notei que é feito um request para:
POST:https://pagarme.vtexpayments.com.br/api/pvt/payment-provider/candidate?environment=beta
Com o conteúdo:
{
"implementation": "Vtex.PaymentGateway.Connectors.PaymentProvider.PaymentProviderConnector",
"name": "PagarMeSync",
"configuration": [
{
"name": "serviceUrl",
"value": "MINHAURL/dev/"
},
{
"name": "ApplicationAuthenticationLink",
"value": ""
},
{
"name": "appKey",
"value": "MINHACHAVE"
},
{
"name": "appToken",
"value": "MEUTOKEN"
},
{
"name": "PaymentSystems",
"value": "[\"American Express\",\"Mastercard\",\"Visa\"]"
},
{
"name": "oauth",
"value": "false"
},
{
"name": "connectorstatus",
"value": "Homologation"
},
{
"name": "useEarlySecurityCapture",
"value": "0"
},
{
"name": "connectorName",
"value": "PagarMeSync"
},
{
"name": "accountName",
"value": "pagarme"
},
{
"name": "useAntifraud",
"value": "false"
}
],
"isdelivered": true,
"isConfigured": true
}
O resultado é um erro 500 com o conteúdo:
{
"error": {
"code": "1",
"message": "The connector can not be saved. Error: Error! We havea problem at check the payment systems. The connector can not be saved.",
"exception": {
"ClassName": "Vtex.Practices.ServiceModel.Client.Exceptions.InternalServerErrorException",
"Message": "The connector can not be saved. Error: Error! We havea problem at check the payment systems. The connector can not be saved.",
"Data": null,
"InnerException": {
"ClassName": "System.Exception",
"Message": "The connector can not be saved. Error: Error! We havea problem at check the payment systems. The connector can not be saved.",
"Data": null,
"InnerException": null,
"HelpURL": null,
"StackTraceString": " at Vtex.PaymentGateway.PaymentProviderApiController.CreateCandidate(ConnectorsReceived connector, String environment) in c:\\TeamCity\\buildAgent\\work\\405a8044bcf7b37a\\src\\VTEX Payment Gateway\\Private Assemblies\\Vtex.PaymentGateway.WebApi\\PaymentProviderApiController.cs:line 96\r\n at lambda_method(Closure , Object , Object[] )\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Tracing.ITraceWriterExtensions.<TraceBeginEndAsyncCore>d__18`1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Tracing.ITraceWriterExtensions.<TraceBeginEndAsyncCore>d__18`1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n at Vtex.PaymentGateway.Filters.ResourceFilter.<ExecuteAuthorizationFilterAsync>d__0.MoveNext() in c:\\TeamCity\\buildAgent\\work\\405a8044bcf7b37a\\src\\VTEX Payment Gateway\\Private Assemblies\\Vtex.PaymentGateway.WebApi\\Filters\\ResourceFilter.cs:line 44\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Tracing.ITraceWriterExtensions.<TraceBeginEndAsyncCore>d__18`1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()",
"RemoteStackTraceString": null,
"RemoteStackIndex": 0,
"ExceptionMethod": "8\nCreateCandidate\nVtex.PaymentGateway.WebApi, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null\nVtex.PaymentGateway.PaymentProviderApiController\nSystem.Collections.Generic.List`1[Vtex.PaymentGateway.ConnectorsReceived] CreateCandidate(Vtex.PaymentGateway.ConnectorsReceived, System.String)",
"HResult": -2146233088,
"Source": "Vtex.PaymentGateway.WebApi",
"WatsonBuckets": null
},
"HelpURL": null,
"StackTraceString": null,
"RemoteStackTraceString": null,
"RemoteStackIndex": 0,
"ExceptionMethod": null,
"HResult": -2146233088,
"Source": null,
"WatsonBuckets": null
}
}
}
Com a mensagem de erro não consegui identificar o problema em si.