Skip to main content

PayPal Community

  • Dashboard
  • Send and Request
  • Wallet
  • Business
  • Help
Log in

Le Forum de la communauté n’est pas disponible pour les nouveaux messages ou les réponses; les articles précédents restent disponibles pour vérification. Afin de connaître les options d’assistance complètes, rendez-vous sur PayPal.com/HelpCenter

Si vous souhaitez signaler du contenu illégal et contraire au Règlement sur les services numériques de l’Union Européenne (DSA), veuillez cliquer ici.

since ‎Apr-17-2021
Country: Germany
Type: Business
black-window
black-window Contributor
Contributor
4
Posts
1
Kudos
0
Solutions
Liked
Ice Breaker
Giving
The Return
Active
View all
Latest Contributions by black-window
  • Topics black-window has Participated In
  • Latest Contributions by black-window

Webhook ACTIVATE.SUBSCRIPTION missing Agreement ID...

by black-window Contributor in REST APIs
‎Mar-17-2022 05:33 PM
‎Mar-17-2022 05:33 PM
Created a subscription button and set a webhook. I do not get a Agreement ID:   {"id":"WH-1NV57124U7120923S-93E888338V084272F","event_version":"1.0","create_time":"2022-03-17T00:35:12.551Z","resource_type":"subscription","resource_version":"2.0","event_type":"BILLING.SUBSCRIPTION.ACTIVATED","summary":"Subscription activated","resource":{"quantity":"1","subscriber":{"email_address":"","payer_id":"XZ6SMVYL6CJT4","name":{"given_name":"test","surname":"buyer"},"shipping_address":{"address":{"address_line_1":"[removed]. 1","admin_area_2":"Freiburg","admin_area_1":"Empty","postal_code":"[removed]","country_code":"DE"}}},"create_time":"2022-03-17T00:34:44Z","plan_overridden":false,"shipping_amount":{"currency_code":"EUR","value":"0.0"},"start_time":"2022-03-17T00:34:28Z","update_time":"2022-03-17T00:34:45Z","billing_info":{"outstanding_balance":{"currency_code":"EUR","value":"0.0"},"cycle_executions":[{"tenure_type":"REGULAR","sequence":1,"cycles_completed":1,"cycles_remaining":0,"current_pricing_scheme_version":1,"total_cycles":0}],"last_payment":{"amount":{"currency_code":"EUR","value":"19.99"},"time":"2022-03-17T00:34:44Z"},"next_billing_time":"2022-04-17T10:00:00Z","failed_payments_count":0},"links":[{"href":"https://api.sandbox.paypal.com/v1/billing/subscriptions/I-W3L44KAAWUL0/cancel","rel":"cancel","method":"POST","encType":"application/json"},{"href":"https://api.sandbox.paypal.com/v1/billing/subscriptions/I-W3L44KAAWUL0","rel":"edit","method":"PATCH","encType":"application/json"},{"href":"https://api.sandbox.paypal.com/v1/billing/subscriptions/I-W3L44KAAWUL0","rel":"self","method":"GET","encType":"application/json"},{"href":"https://api.sandbox.paypal.com/v1/billing/subscriptions/I-W3L44KAAWUL0/suspend","rel":"suspend","method":"POST","encType":"application/json"},{"href":"https://api.sandbox.paypal.com/v1/billing/subscriptions/I-W3L44KAAWUL0/capture","rel":"capture","method":"POST","encType":"application/json"}],"id":"I-W3L44KAAWUL0","plan_id":"P-7SL34546G9706613BMIZGEXQ","status":"ACTIVE","status_update_time":"2022-03-17T00:34:45Z"},"links":[{"href":"https://api.sandbox.paypal.com/v1/notifications/webhooks-events/WH-1NV57124U7120923S-93E888338V084272F","rel":"self","method":"GET"},{"href":"https://api.sandbox.paypal.com/v1/notifications/webhooks-events/WH-1NV57124U7120923S-93E888338V084272F/resend","rel":"resend","method":"POST"}]}   Is there something i am missing? ... View more

Webhooks for subscription are fireing in a random ...

by black-window Contributor in REST APIs
‎Feb-19-2022 04:31 PM
‎Feb-19-2022 04:31 PM
Hello,   i am very confused by all the webhooks for recuring payment. My scenario: I have a paypal button for subscription with a hidden field (e-mail of the buyer, plan-id), which i need to identify the plan that was bought and the user who has bought it. This works. Now i need the webhook job, which gives me the possibility to create a bill. What i need for this bill:  - Name - Address - Plan - Costs - E-Mail of PayPal - My custom field   I am currently lost in the webhook API. I think i need the very first successfull payment notification (Create first bill) and then i need a notification for each recuring payment (e.g. every month) and create the follow up bills. There is a  "event_type":"BILLING.SUBSCRIPTION.ACTIVATED" and  "event_type":"PAYMENT.SALE.REFUNDED" and  "event_type":"PAYMENT.SALE.COMPLETED". The data that comes with it is extremly hard to identify. I did not found a Java DTO for these types, so i builded my own POJO for it.  There is so much confusing me.  For example i have a friend that made a payment for test in the live environment. There was an error in my code, so i reverted the payment. If i resend the webhook, sometimes there is a sale id , sometimes there is refund reason, sometimes there is the payment sale completed event. It is so confusing. I just want to create my bills and mark the subscription time, so that the user can use the service for the paid period. Does anybody have a good example for doing such thing? I am using Java.  ... View more
Labels:
  • Labels:
  • Webhooks REST APIs

Re: Webhook not working live (webhook event not fi...

by black-window Contributor in REST APIs
‎Apr-19-2021 03:14 PM
1 Kudo
‎Apr-19-2021 03:14 PM
1 Kudo
For me the live event webhook is not firing too. 😞   ... View more

Simple paypal subscription webhook example with ja...

by black-window Contributor in REST APIs
‎Apr-17-2021 10:36 AM
‎Apr-17-2021 10:36 AM
Is it possible that someone of you can make this example: https://github.com/paypal/PayPal-Java-SDK/blob/master/rest-api-sample/src/main/java/com/paypal/api/sample/SubscriptionSample.java work with webhooks? I have created a webhook (The event that is configured for my webhook is: Billing subscription activated) and used the webhook mock to test the webhook. My backend receives the event and can process it.   But if i use the example code above to make a subscription, i never receive the webhook event on my server. Do i need to add the webhookId somewhere? Also confusing the return url and notification url. What is the difference and do i need to set them to get the subscription activated event? Thank you friends. ... View more
Paypal Logo
  • Help
  • Contact Us
  • Security
  • Fees
  • © 1999-2025 PayPal, Inc. All rights reserved.
  • Privacy
  • Legal
  • Cookies
  • Policy Updates

The money in your balance is eligible for pass-through FDIC insurance.

The PayPal Cash Mastercard is issued by The Bancorp Bank pursuant to a license by Mastercard International Incorporated. The Bancorp Bank; Member FDIC.

Powered by Khoros