Please post all pre-sales questions of all products on this forum

Call additional script after successful payment

  • arbind
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 6 months ago #104678 by arbind
Does the extension "Payment Form" provide an option to call an additional script upon the successful payment? Please advise.

This feature would open lots of possibilities if we could call our own script to do certain things after the successful payment.

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

More
7 years 6 months ago #104680 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Call additional script after successful payment
Hi

Yes. The extension has a plugin called Payment Form PHP Script . It allows you to write PHP code which you want to execute after successful payment, so you can write any code you want

Within that script, you can access to $row variable which contains data of the payment record

Please let me know if you have any other questions

Tuan

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

  • arbind
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 6 months ago #104689 by arbind
Can we also access and use the values of the (custom) fields that the user enters and submits through the payment form?

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

More
7 years 6 months ago #104699 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Call additional script after successful payment
Yes, you can. However, for the fields like that, you would have to write some code to query data from a database table #__pf_field_value. It is easy if you know some basic Joomla programming

Regards,

Tuan

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

Moderators: Tuan Pham NgocGiang Dinh TruongMr. Dam