oioi, conseguem ajudar? não consegui testar o assíncrono...
ao tentar recebi o erro abaixo. como o CheckoutBean está @Named tentei adicionar outros tipos de @Scoped e ainda assim não tive sucesso...
13:09:48,670 INFO [stdout] (default task-13) compra: 5160bfdc-6b6f-493a-89f4-786c05fd3ed3
13:09:50,715 INFO [stdout] (pool-8-thread-1) response do PagGT pagar(): Pagamento efetuado com sucesso
13:09:50,715 INFO [stdout] (pool-8-thread-1) compra total: 234.00
13:09:50,722 ERROR [org.jboss.resteasy.resteasy_jaxrs.i18n] (pool-8-thread-1) RESTEASY002010: Failed to execute: javax.ws.rs.WebApplicationException: HTTP 500 Internal Server Error
at br.com.casadocodigo.loja.service.PagamentoService.lambda$0(PagamentoService.java:60)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.jboss.weld.context.ContextNotActiveException: WELD-001303: No active contexts for scope type javax.enterprise.context.RequestScoped
at org.jboss.weld.manager.BeanManagerImpl.getContext(BeanManagerImpl.java:689)
at org.jboss.weld.bean.ContextualInstanceStrategy$DefaultContextualInstanceStrategy.getIfExists(ContextualInstanceStrategy.java:90)
at org.jboss.weld.bean.ContextualInstance.getIfExists(ContextualInstance.java:63)
at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:83)
at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:99)
at org.jboss.weld.proxies.ServletContext$236329698$Proxy$_$$_WeldClientProxy.getContextPath(Unknown Source)
at br.com.casadocodigo.loja.service.PagamentoService.lambda$0(PagamentoService.java:53)
... 5 more