Asynchronous call never comes back

Phrygian
Contributor
Contributor

    public async static Task<HttpResponse> CreateOrder(PayPalRequestBody RequestBody, bool debug = false)

        {

            Console.WriteLine("Creating Order with complete payload");

            var request = new OrdersCreateRequest();

            request.Prefer("return=representation");

            request.RequestBody(BuildRequestBody(RequestBody));

            // SBC - this call currently not coming back

            var response = await PayPalClient.client().Execute(request);

            var result = response.Result<Order>();   // <---- never get here

}

 

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.