onAfterPaymentSuccess missing on offline payment

  • Eric Lamy
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
12 years 7 months ago #32757 by Eric Lamy
Hello,

We are develloping a plugin which send a bill for user after they have payed their subscription. There's no problem with our payment gateway (CM-CIC) but we didn't find the event onAfterPaymentSuccess on the offline gateway.
Is it something missing and if yes do you thing you could add it to the component ? In fact we can hack the component but it will be a problem for next upgrade of this component.

Thx for answers

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

  • Eric Lamy
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
12 years 7 months ago #32849 by Eric Lamy
up ? :)

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
12 years 7 months ago #32854 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: onAfterPaymentSuccess missing on offline payment
Dear Eric

I believe there is no reason of the extension to trigger onAfterPaymentSuccess for offline payment. The reason is because for offline payment, the payment will be made later, not at the time users complete the registration.

So in this case, you will need to implement the code and maintain it yourself.

Regards,

Tuan

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

  • Eric Lamy
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
12 years 7 months ago #32856 by Eric Lamy

Tuan Pham Ngoc wrote: Dear Eric

I believe there is no reason of the extension to trigger onAfterPaymentSuccess for offline payment. The reason is because for offline payment, the payment will be made later, not at the time users complete the registration.


But with offline paiement we have a statut who could be pending, so when the administrator set it to paid there is an event isn't it ? I thing it could be the same event that in the CB paiement don't you think ?

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
12 years 7 months ago #32862 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: onAfterPaymentSuccess missing on offline payment
Maybe in the next release, I think I will add support for an event, something like onAfterRegistrationApproved. When you edit registrant who uses offline payment and set it to Active.

Regards,

Tuan

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

Moderators: Tuan Pham Ngoc