Skip to Content Skip to Menu

CBSubs Auto Actions not firing on PayPal payment completion

  • liaskas
  • liaskas
  • ONLINE
  • Posts: 494
  • Thanks: 42
  • Karma: 3
  • Add-ons
2 hours 3 minutes ago - 1 hour 28 minutes ago #342703 by liaskas
Hello,

We are using CBSubs with PayPal on Joomla 5.4.

We are trying to run post-payment logic (VAT / OSS accounting) using CB Auto Actions, but no Auto Action is firing when PayPal payments are completed.

What we have tested and confirmed:

1. Payments do complete successfully in PayPal

2. Rows are correctly written to: #__cbsubs_payment_baskets (payment_status = 'Completed') and #__cbsubs_payments

We tested the following Auto Action triggers:

onCPayAfterPaymentStatusChange
onCPayUserStateChange

Auto Action PHP code does not execute at all -> verified via error_log

Conditions were reduced to a single SQL condition:

SELECT 1
FROM cbsubs_payment_baskets
WHERE user_id = [var1_id]
  AND payment_status = 'Completed'
  AND gateway_account = <paypal_gateway_id>
ORDER BY id DESC
LIMIT 1


Even with minimal PHP code (just logging), no Auto Action is executed

Our questions:

Are CB Auto Actions expected to fire when PayPal payments are completed asynchronously (IPN / delayed completion)?

Which Auto Action trigger is guaranteed to fire after a PayPal payment is finalized and subscriptions are activated?

Is there an official recommended hook for running post-payment accounting logic (VAT / OSS) in CBSubs?

Thank you.Can you please advise?
Thank you.
Last edit: 1 hour 28 minutes ago by liaskas.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum