georgie
Member
Hello
I use the Paypal plugin.
I add a "status" field which changes automatically with a PHP form plugin, to inform the status of the payment ( "In progress" by default, before payment, then "Confirmed", after payment).
I need this to allow or prohibit changes if paiment is done or not.
I do:
It works.
But if a user cancels a payment (return keyboard for example), the "status" field is still filled (with "Confirmed" so).
I tried to modify the options of the PHP plugin form (Start of submission, End, after ...), but without success.
Can you help me ? Is it a way to not run my PHP if paiment is cancelled ? Or another way to inform the status of a paiment in a list ?
THX
I use the Paypal plugin.
I add a "status" field which changes automatically with a PHP form plugin, to inform the status of the payment ( "In progress" by default, before payment, then "Confirmed", after payment).
I need this to allow or prohibit changes if paiment is done or not.
I do:
Code:
$formModel->updateFormData('my_table___status_field' , 'Confirmed' , true);
It works.
But if a user cancels a payment (return keyboard for example), the "status" field is still filled (with "Confirmed" so).
I tried to modify the options of the PHP plugin form (Start of submission, End, after ...), but without success.
Can you help me ? Is it a way to not run my PHP if paiment is cancelled ? Or another way to inform the status of a paiment in a list ?
THX