[DUG] Web and EXE
Robo
robo555 at gmail.com
Mon Nov 13 21:10:45 NZDT 2017
The session variables you store are in your domain, the session ID is
stored by your user. When Polipay makes the callback, the request is
effectively coming from a different user, you can't use $_SESSION because
you're effectively stealing another user's session.
Try using the ID you get from Polipay to identify which record to update in
the database, not session variables.
Robo
On 13 Nov 2017 7:45 am, "Stephen Barker" <Steve at webdata.co.nz> wrote:
> Not sure with Polipay, but I recall having similar issues with DPS when
> first setting up payments on my framework. DPS would do 2 callbacks - only
> one of them is the one I wanted, and the other I had to ignore. But that
> was over 15 years ago so my memory is a bit hazy on the details...
>
> You might want to do some text file logging from your PHP or wherever you
> are calling Poli from. Log all the response content etc. Check you are
> getting the correct session id and other variables.
>
> Steve
>
> ------------------------------
> *From:* Robo [mailto:robo555 at gmail.com]
> *Sent:* Monday, 13 November 2017 11:21 a.m.
> *To:* NZ Borland Developers Group - Delphi List
> *Subject:* Re: [DUG] Web and EXE
>
> When you get the callback from the payment provider, are you sure you have
> the correct identifier to update the correct database record?
>
> Robo
>
> On 12 Nov 2017 11:15 pm, "Marshland Engineering" <
> marshland at marshland.co.nz> wrote:
>
> I'm having a hiccups with MySQl PHP and Delphi.
>
> I have my back end in Delphi that controls all the Clubs/Members data.
> I created a HTML/PHP front end where members can update there details,
> enter
> events etc
> I'm using Polipay to process payments.
>
> In the Delphi, I open the files for the DBGrids etc. The files are only
> updated when a post is executed.
>
> In the PHP code, I do a query, get data and display it on a page. On a page
> submit, I execute and update the SQL.
> When a member enters an event, all his details are entered into the table.
> However, often the final update when the Polipay is completed, is not
> done. I
> get the confirmation email to say paid, but the paid flag is not updated. I
> cannot repeat the fault when I test.
>
> I was wondering, if I have the Delphi exe open whether that may affect the
> PHP
> statements. I can't see it only affecting only one of 2 statements.
>
> I don't have any errors in the error log on the server.
>
> I'm not looking for a specific answer although that would be great, but
> some
> info on Delphi and PHP interface and what possible problems to lookout for.
>
> PHP is a ??? language.
>
> If you are interested in Classic and Post classic racing, you can see the
> entrants to our event at Levels in Dec. We have Wes Cooley, Aaron Slight,
> Cosbey and a Britten amongst the 200+ bikes mix.
>
> Login here Members - MNZ Number 100000 password test123
> http://myregister.co.nz/cams/
>
>
> Cheers Wallace.
>
> _______________________________________________
> NZ Borland Developers Group - Delphi mailing list
> Post: delphi at listserver.123.net.nz
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to delphi-request at listserver.123.net.nz with
> Subject: unsubscribe
>
>
>
> _______________________________________________
> NZ Borland Developers Group - Delphi mailing list
> Post: delphi at listserver.123.net.nz
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to delphi-request at listserver.123.net.nz with
> Subject: unsubscribe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20171113/723a48b0/attachment.html
More information about the Delphi
mailing list