1. EricWebsite
  2. RO Payments
  3. Wednesday, 28 April 2021
  4.  Subscribe via email
Hi,

A couple of days ago I updated the site where I developed the onPaymentComplete php script in above plugin.
You supplied the plugin separately at the time since it was not yet in the previous RO Payments package.

I used version 6.4.0 to update. To my surprise my script was overwritten by the update!
Could you please check?

Thanks and best,
Eric
Accepted Answer Pending Moderation
Hello Eric,

To my surprise my script was overwritten by the update!
Now that you mention it, this is no surprise to me but rather something I did not think of. So the RO Payments plugin is an example plugin and apparently you took the plugin verbatim instead of giving it your own name. This is why it is overwritten as the installer installs the plugins as well.

Easiest would be to rename your plugin to something else than ropayments so any future updates won´t overwrite yours.
Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. one week ago
  2. RO Payments
  3. # 1
Accepted Answer Pending Moderation
Ah I see!
So I can change rhe folder name under plugins/jdideal/ ? Like from ropayments to onpaymentcomplete
Or should I change the ropayments.php file name?
  1. one week ago
  2. RO Payments
  3. # 2
Accepted Answer Pending Moderation
Hello Eric,

The changes that need to be done are:

  1. Change the folder name plugins/jdideal/ropayments to plugins/jdideal/eric (the name eric can be anything)
  2. Change the filename ropayments.php to eric.php
  3. Change the filename ropayments.xml to eric.xml
  4. Inside the eric.xml also change ropayments to eric
  5. Change the language filenames and replace ropayments with eric
  6. In Joomla do a Discover installation and your plugin should show
  7. Complete the installation
  8. Enable the plugin under Plugins
  9. It should be ready to go
Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. one week ago
  2. RO Payments
  3. # 3
Accepted Answer Pending Moderation
Hi again,
Did all that but it does not seem to work.
I zipped up the plugin and attached it.
Is there anything wrong with it? I see it, it's published but does not work.
Obviously, the script.php is wrong, should I modify that too?
Attachments (1)
  1. one week ago
  2. RO Payments
  3. # 4
Accepted Answer Pending Moderation
Hello Eric,

The script.php is wrong indeed but that is only for auto-enabling the plugin. You can also just delete that file or if you want to keep it, you need to replace the word ropayment in the file with onpaymentcompleted. If you decide to delete it, remove it also from the onpaymentcompleted.xml.

The plugin does not work now because the classname is still the old one, this needs to be renamed from PlgJdidealRoPayments to PlgJdidealOnpaymentcompleted

That should be all.
Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. one week ago
  2. RO Payments
  3. # 5
Accepted Answer Pending Moderation
Hi Roland,

Very sorry to bother you again, but it does not work.
The prugin does not seem to get triggered.
Could you please, please take a quick look at the plugin?
Attachments (1)
  1. one week ago
  2. RO Payments
  3. # 6
Accepted Answer Pending Moderation
Hello Eric,

It is not a bother at all :) So I installed your plugin, put my own code in the onPaymentComplete and made a successful payment using the payment page and the onPaymentComplete is triggered.

There is no problem with your plugin as far as I can see. You could put in a lone of code like this one, so you get an email every time it is triggered:

mail('YOUR EMAIL@SOMEHWERE', 'onPaymentComplete', 'The trigger onPaymentComplete is called');
Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. one week ago
  2. RO Payments
  3. # 7
Accepted Answer Pending Moderation
Hi Roland,

Indeed it does work! There was a typo in the code (wrong field name) that I put into the plugin that made me think it was not triggered.

Murphy strikes a lot in this project ...
Anyway, thanks for your patience with me!

Best,
Eric
  1. one week ago
  2. RO Payments
  3. # 8
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!