campingmontagut/verify/decode_base64url.sql
jordi fita mas ff6750fbea Handle payment notifications from Redsys
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.
2024-02-13 02:38:38 +01:00

8 lines
135 B
PL/PgSQL

-- Verify camper:decode_base64url on pg
begin;
select has_function_privilege('camper.decode_base64url(text)', 'execute');
rollback;