Hi, I have a MERN stack application which provides subscriptions for pro versions. A user can click a paypal button and approve a subscription. This subscription is stored in my database by calling my backend with the subscriptionId. My backend calls paypal to get the subscriptions's data and stores the subscription in my database with the start_date, status and next_billing_date. So now to my Problem. How can I simulate, when an automatically payment for a subscription was made? I implemented webhooks, reacting on following events: BILLING.SUBSCRIPTION.ACTIVATED - store subscription in our database if not existing (should already exist with status=ACTIVE by onApprove function of paypal button) PAYMENT.SALE.COMPLETED - how can I simulate this? I guess I receive a payment with date, amount and currency and have to get subscription again to find out my new next_billing_date PAYMENT.SALE.REVERSED - I manually cancel the subscription in paypal and my database BILLING.SUBSCRIPTION.PAYMENT.SUSPEND: I manually cancel the subscription in paypal and my database BILLING.SUBSCRIPTION.CANCELLED - I manually cancel the subscription in my database How can I simulate those webhooks in sandbox mode (especially the auto payment) ? I know the webhook simulator, but this simulator has no real data. E.g. I can not see, if the subscription's next billing_date is the new one, since no real data were processed. So I have no clue how to update my subscriptions next_billing_date. Is there maybe even a better practice to sync the paypal subscriptions and my database? I need to have the start_date, the next_billing_date and the status in my database to show them my users. Thanks for any hints 😊
... View more