Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

139
Vistas
Paypal - Update Client ID for Past Subscriptions

Previously, I used Paypal Subscription links on my website, clicking which, users can go to Paypal payment page, pay the amount there and become subscriber.

Now, I want to receive webhooks, whenever my subscriber updates or cancels his subscription. Therefore, am using following code to render Paypal buttons via which users can now buy subscriptions. I have setup corresponding webhooks against the below mentioned client-id in My Apps section in Paypal. This is all working for new subscriptions.

<div id="paypal-button-container-P-XXX"></div>
<script src="https://www.paypal.com/sdk/js?client-id=XXXXXX&vault=true&intent=subscription" data-sdk-integration-source="button-factory"></script>
<script>
    paypal.Buttons({
        style: {
            shape: 'rect',
            color: 'gold',
            layout: 'vertical',
            label: 'subscribe'
        },
        createSubscription: function(data, actions) {
            return actions.subscription.create({
                /* Creates the subscription */
                plan_id: 'P-XXX'
            });
        },
        onApprove: function(data, actions) {
            alert(data.subscriptionID);
        }
    }).render('#paypal-button-container-P-XXX'); // Renders the PayPal button
</script>

I want to know, whether there is a way so that I can setup or receive webhooks for my old subscribers as well, which subscribed through the Subscriber Plan link?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Subscriptions are permanently tied to the Client ID they were created with.

You can subscribe to webhooks for that app's Client ID in https://www.paypal.com/signin?intent=developer&returnUri=https%3A%2F%2Fdeveloper.paypal.com%2Fdeveloper%2Fapplications

Verification of such webhooks will be different, so depending on your verfication method (if any) you should send such webhooks to a different URL to be able to tell the difference.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda