Unable to find equivalent API endpoints in payment v2 as payment v1 endpoints are now deprecated.

prakharkhanna
Contributor
Contributor

Hi, 

 

I am migrating my service from php to java stack.

In php, PayPal SDK was integrated in which payment v1 APIs (@https://developer.paypal.com/docs/api/payments/v1/)were being used. Now, I am trying to integrate PayPal REST APIs, but payment v1 is now deprecated and I am unable to find equivalent endpoints in payment v2 version of APIs(@https://developer.paypal.com/docs/api/payments/v2/).

Please help me with the same. 

 

Payment v1 APIs that are being used are : 

/v1/payments/payment (POST)

/v1/payments/payment (GET)

/v1/payments/payment/{id}/execute

 

Thanks

Login to Me Too
1 REPLY 1

MTS_Chiranjeevi
Moderator
Moderator

Good day @prakharkhanna,

 

Thank you for posting to the PayPal community.

 

Yes, th/v1/payments endpoint is deprecated. Please use the /v2/payments endpoint instead. For details, see PayPal Checkout Basic Integration.

 

Please find the below V2 payments API details. 

 

https://developer.paypal.com/docs/api/payments/v2/#authorizations_capture

 

https://developer.paypal.com/docs/api/payments/v2/#authorizations_get

 

https://developer.paypal.com/docs/api/payments/v2/#captures_get 

 

https://developer.paypal.com/docs/api/payments/v2/ 

 

Sincerely,

Chiranjeevi

PayPal/Braintree MTS

 

If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.

Login to Me Too

Haven't Found your Answer?

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