cancel
Showing results for 
Search instead for 
Did you mean: 

The sandbox returns a GET with payerId as a request parameter. Why isn't it in the body? NET 1.8

Member

The sandbox returns a GET with payerId as a request parameter. Why isn't it in the body? NET 1.8

I'm using the .net sdk version 1.8 to create a payment. Using the Create method It's setting the PaymentUrl to

"https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-76572603MF809350A"

 

and I'm setting the return url to /Cart/ProcessPaypalCheckout?orderId=<insert order id>

 

However, the response back from paypal is in the form of a GET request with the return url I set AND the payerId and paymentId appended as query parameters

 

But according to https://developer.paypal.com/docs/checkout/how-to/server-integration/#execute-the-payment-2 I should "Get the paymentID and the payerID from the request body" so why are these values getting appended to the request url as a GET request?

 

I've read an old way of getting the payerId was by appended query parameters. It's my understanding that was for an Adaptive API, but I'm not using a legacy api