I have to basically do the reverse of signing the request to verify that the notification comes from them. Lots of code just for that. I return the changed status from the PL/pgSQL function because i will need to email customers when a payment is completed, and i need to know when.
8 lines
103 B
PL/PgSQL
8 lines
103 B
PL/PgSQL
-- Revert camper:redsys_response from pg
|
|
|
|
begin;
|
|
|
|
drop type if exists camper.redsys_response;
|
|
|
|
commit;
|