Square API: How does the payment notifications webhook work? -


i inherited app uses webhooks connect api. i'm looking through this:

https://docs.connect.squareup.com/api/connect/v1/#webhooks-overview

i have webhook setup says in docs:

curl -x put -h "authorization: bearer personal_access_token" -h "content-type:  application/json" -d "[\"payment_updated\"]"  https://connect.squareup.com/v1/location_id/webhooks 

i had issue receiving 2 requests each payment_updated event. found out because 2 separate accounts had webhook enabled. 2 accounts were

1) developer's account

2) client's account

however, don't understand how developer's account receiving notifications orders coming client's account?

is because hooks orders placed in location (which comes location_id) , webhook url specified merchant (which identified personal_access_token)? works if merchant not owner of location?

you have multiple applications connected account same notification url, getting notified twice. if go https://squareup.com/dashboard/apps/my-apps can see apps authoirzed given account , remove ones aren't using anymore.


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -