Forums

Add data to existing record

nielskliim 29 Nov, 2012
I am setting up a simple registration form with an associated DIBS payment system.
Before the data is send to the payment system window, the registration information is saved to a database.
From the payment window Cancel url and Accept url is straight forward, while I have problems with the Callback url.

Amongst other information DIBS sends a 'Statuscode' which I need to catch and add to the record which was saved prior to the Redirection to DIBS Payment window. The adding furthermore needs to be done automatic in the background, because the user at the same time is redirected to the Accept url.

I've tried a lot of actions but can't seem to find the right way. Have anybody tried anything like this.

Regards Niels
nielskliim 30 Nov, 2012
Ok so I figured out to make some php coding in a Custom Code, which of course is extremely basic, but two days ago I didn't know anything about php coding.

Know I just want to know if it is possible to run a form in the background - instead of opening a page - because the form/code is executed as a Callback url from DIBS payment, while the costumer is being directed to an accept page.

Regards Niels
GreyHead 30 Nov, 2012
Hi nielskliim,

If you click the Add Event button in the Wizard Events tab and give your new event a name like my_event and put your code there (you'll need to copy and paste); then you can call that event with
http://my_domain/index.php?option=com_chronoforms&chronoform=my_form&event=my_event


Bob
nielskliim 03 Dec, 2012
Hi Bob

Thank you for the answer.
It seems like it works in the background even though I link the accept url to a page. Maybe it is because it is being executed while you are still on the payment site.

Now I just have to figure out to have the page sending a confirmation mail to the buyer.
Is it that simple that I put in the name of the column that holds the email information, in the dynamic "send to"?

regards Niels
GreyHead 03 Dec, 2012
Hi Niels,

Yes, a callback like this (or the PayPal IPN) works 'behind the scenes' and is invisible to the user and to the developer. When I need to debug these I turn on the Joomla! Logger and have the invisible form dump output to a text file that I can look at afterwards.

Bob
This topic is locked and no more replies can be posted.