cancel
Showing results for 
Search instead for 
Did you mean: 

server side payments how does it work in v2

New Community Member

server side payments how does it work in v2

Hi All,

 

I am following the examples as per here:

https://developer.paypal.com/docs/archive/checkout/how-to/server-integration/#2-set-up-your-server-t...

 

As per the document I have the payPal button, that will call an endpoint on my back-end. My backend will then call this endpoint: "/v1/payments/payment'".

 

this (paypal) endpoint will give me an Id that is required by the next step to execute the payment. Now reading the docs, it advises me to use the new "v2/payments" API. I am happy to do this, but I cannot find the endpoint that will setup a payment and will return me paymentId that is required in the next step. 

 

Am I missing something, or should I just keep using the "v1/payements" end point? for setting up a payment that will be authorized later.

 

Thanks