Paypal Sandbox transactions are not shown [duplicate]

梦想的初衷 提交于 2019-12-08 13:35:03

问题


I have created an account in paypal sandbox and created 2 accounts one with some money for making payments. I use the signature details in my java program for getting paid. When the user click on pay with paypal button we will get a token from paypal and pass it to this URL:

https://www.sandbox.paypal.com/webscr?cmd=_express-checkout&token=

After the successful payment i am not able to see any transactions in my paypal sandbox accounts? Why is it so, what is the mistake i am doing? I am using Google App Engine java and jsp. Please provide me any help full links for doing "Pay With Paypal"

Thanks.


回答1:


See my answer in Why is DoExpressCheckoutPayment required for Paypal?
In order to use Express Checkout, you must call at least the following API calls:
1. SetExpressCheckout -- to set up the transaction.
2. DoExpressCheckoutPayment -- to finalize the transaction.

If you don't call DoExpressCheckoutPayment on the page specified in SetExpressCheckout's RETURNURL parameter, the transaction is not completed. This is by design to allow for greater flexibility in the checkout flow.

Express Checkout is intended as a drop-in solution in your own checkout process. After Express Checkout redirects you back to your site, you're supposed to show an order confirmation where the buyer can review his/her final order details before initiating a button / link which initiates the final DoExpressCheckoutPayment API call. This is why DoExpressCheckoutPayment is required.




回答2:


First of all, I'd do a payment from one test account to another using the regular "Send Money" interface and check that the payment shows up, just to rule out the possibility that the PayPal sandbox is acting up.

As for express checkout, not only do you need to do a GetExpressCheckoutDetails after the user is returned to your site, but you'll also need to do DoExpressCheckoutPayment before the payment will show up (as pending or as completed, depending on whether you're doing a Sale or an Authorization. If you don't call DoExpressCheckoutPayment then PayPal assumes your user left your site or otherwise didn't confirm the transaction.

This is my favorite reference for how to do EC: https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_ECSimpleIntegration



来源:https://stackoverflow.com/questions/8546697/paypal-sandbox-transactions-are-not-shown

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!