Triggers required

  • F4Services
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 10 months ago #45445 by F4Services
Triggers required was created by F4Services
Hi are there any built in triggers which will run once a donation is made and secondly one which will run when the paypal module receives confirmation that payment has been made

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

More
9 years 10 months ago #45486 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Triggers required
Hi

If you look at the code, you will see the two events triggered :

1. onAfterStoreDonor : This event is triggered after the donation record stored in the database.

2. onAfterPaymentSuccess: The event is triggered when the user complete the payment for the donation.

Below is the code :
Code:
JPluginHelper::importPlugin( 'jdonation' ); $dispatcher = JDispatcher::getInstance(); $dispatcher->trigger( 'onAfterPaymentSuccess', array($row));

Regards,

Tuan

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

Moderators: Mr. DamDũng Nguyễn Việt