how to make demo payment from sandbox account by using payment ID, token and payer ID?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- where does paypal payments go to if there is no linked phone or email to the seller ? in PayPal Payments Standard
- Sandbox account collect billing and shipping address in Sandbox Environment
- "System error. Please try again later" when connecting to paypal sandbox account with my android app in Sandbox Environment
- NOT ENABLED TO VAULT PAYMENT SOURCE in Sandbox Environment
- Payments Refunded Automatically After Successful Transactions - PayPal Business Account Issue in REST APIs