3

I integrate PayPal into Android app. I want to test payments in the sandbox. At this time application logs show that test payments is success. I tried to add sandbox webhook, which have to send payment information to my server as I guess.

But I dont't get requests from PayPal after test payments. I tried to simulate webhook request in "Webhooks simulator". I've got the same result.

May be, I've got to do something to get PayPal webhooks requests at my server? Because I have notifications about all test payments in my profile ("Sandbox/Notifications").

abr_stackoverflow
  • 691
  • 2
  • 10
  • 26

1 Answers1

2

Notifications in your sandbox account profile is a simulation of the Transaction Email that PayPal sends to the account, which is irrelevant to webhooks events in this case.

Instead, you may want to check the "Dashboard" > "Sandbox" > "Webhook Events" and see the status of events trigger by the transactions.

Webhook has mandatory requirement on your listener script to be a secure url (HTTPS), so you may check the web server setups as well.

Alternatively, you are still able to use IPN to manage all call-backs for the RESTful API (including Mobile SDK) transactions, with the same approach on the classic APIs, see more detailed on IPN instructions

pp_pduan
  • 3,392
  • 1
  • 9
  • 15
  • We use Classic API at website and we have IPN, which works. But there is another problem. At the site we have form, which send custom variables and IPN sends them later. But I didn't find how to add custom variables for the REST API. – abr_stackoverflow Oct 26 '15 at 13:28
  • 1
    REST API has not yet to support `custom` field, but at this time you may use the `sku` field under `item` object to carry over your pre-defined item specific values – pp_pduan Oct 26 '15 at 14:26
  • 1
    And optionally for PayPal payments, you may append your parameters `?custom=abc` after the `return_url` to make the carry-over – pp_pduan Oct 26 '15 at 14:29
  • @pp_pduan that's helping me a lot - but, can you add a sku field to a paypal express button? I can't quite find out, for example, on the popular Paypal Button http://paypal.github.io/JavaScriptButtons/. – puntofisso Jan 24 '16 at 20:12
  • sku is not in the classic button tags, instead you would specify an unique "invoice" field in there. JSButtons support that too. https://github.com/paypal/JavaScriptButtons#editable-inputs – pp_pduan Jan 25 '16 at 05:37