cancel
Showing results for 
Search instead for 
Did you mean: 

Asynchronous call never comes back

Options
Phrygian
Contributor
Posted on

    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

}

 

Haven't Found your Answer?

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