how to make demo payment from sandbox account by using payment ID, token and payer ID?

Harsha075
Contributor
Contributor

I am trying to make a demo payment using paypal sandbox account. I am using REST API. When I am trying to check out, I am unable to make payment.

It is redirecting to page. In the page url, payment id and payer id and token are available. how can I make a demo payment using these?

Please help me out. 

 

thanks.

Login to Me Too
1 REPLY 1

MTS_Chiranjeevi
Moderator
Moderator

Good day @Harsha075,

 

Thank you for posting to the PayPal community.

 

If your trying to test the payment flow in sandbox environment, please use the test Sandbox accounts(Business & Personal). 

 

Login to your Business Sandbox account and create a test button code and use the test Personal Sandbox account to process payments. 

 

Guide link - https://developer.paypal.com/docs/api-basics/sandbox/accounts/#create-and-manage-sandbox-accounts

 

We recommend merchants to integrate our latest PayPal Checkout (Smart button) product.

Guide link : https://developer.paypal.com/docs/checkout/standard/ 

Please follow the below steps via your PayPal account. 

Login Sandbox PayPal.com >> click on "settings icon" >> go to "Account settings" >> Website payments >> PayPal buttons >> select "Smart Buttons" button type >> fill all the required details >> copy & paste the button code on your website with the help of your website developer. 

(Or)

Login Sandbox PayPal.com >> go to direct link "https://www.paypal.com/buttons/" >> follow the above steps

 

Please refer below guide links :

 

https://developer.paypal.com/docs/archive/express-checkout/ec-initiate-payment/ 

https://developer.paypal.com/api/rest/requests/

 

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.