Execute php code upon successful payment

More
1 year 5 months ago #154883 by Alain
Hello,

Depending on the selected category, I need to execute some php code upon successful payment.
Do you have any examples or suggestions how to do this?

Context:
If the customer purchases an e-book, then add user-specific information on each page of theE-book pdf. The php code works...but now I need to integrate it with EShop.

My specific questions: Where do I put this php code and how do I access the user info and ordered products?

Kind regards,
Alain

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

  • Giang Dinh Truong
  • Offline
  • Administrator
  • Administrator
More
1 year 5 months ago #155146 by Giang Dinh Truong
Replied by Giang Dinh Truong on topic Execute php code upon successful payment
Hello Alain,

You can develop EShop plugin to implement the custom code when order is processed successfully if you want. Please read the documentation here eshopdocs.joomservices.com/developer-guide/develop-eshop-plugin

Sincerely, Giang

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

Moderators: Giang Dinh Truong