2

I want to use the payout interface of paypal. Using curl in sandbox mode has been called. However, I dont know how to use returnUrl, because I need to know whether the payment of paypal is successful. This should be an asynchronous operation. I filled in the callback address in the location shown in the figure, but I checked the access log and found that no callback was received. Who can help me and how to solve this problem?

xiaoke
  • 21
  • 1
  • 1
    Please provide more details about your implementation and request. The Payouts API reference does not specify anything about a callback: https://developer.paypal.com/docs/api/payments.payouts-batch/v1/ – Preston PHX Jun 25 '20 at 19:06
  • on https://developer.paypal.com/ : DASHBOARD -- My Apps & Credentials -- REST API apps -- I created App name view details -- SANDBOX APP SETTINGS -- Return URL “Users are redirected to this URL after live transactions. Allow up to three hours for the change to take effect. ” I thought it's a call back url setting, Paypal will call this url to update transaction status. If it not a call back url, how to let Paypal update status. – xiaoke Jun 26 '20 at 02:53

1 Answers1

1

The URL you speak of in REST App settings really only applies to things like Connect with PayPal or OpenID integrations, and has nothing to do with Payouts.

To be notified of Payouts status, see the API response of your Payouts request, or register for Webhook events that have to do with Payouts.

Preston PHX
  • 27,642
  • 4
  • 24
  • 44
  • 1
    Could u please talk about the “Webhook” how to use in detail ? Does the "webhook" update the payment status asynchronously? when the transaction complete or failed? – xiaoke Jun 26 '20 at 09:24
  • 1
    Webhooks are asynchronous, yes, and documented here: https://developer.paypal.com/docs/integration/direct/webhooks/ – Preston PHX Jun 26 '20 at 16:13
  • When I save Webhook URL,the page tips “Something went wrong during your request. Try again.”,Does the paypal sandbox stop service? https://www.paypal-status.com/product/sandbox – xiaoke Jun 28 '20 at 10:34
  • Should I go to some place to grant permission? The save button do a request to https://developer.paypal.com/developer/webhooks/createwebhook , and this url response is "You do not have permission to view this page." – xiaoke Jun 28 '20 at 10:37
  • You can register for webhooks with an API call and not use that UI – Preston PHX Jun 28 '20 at 18:51