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.
21 lines
361 B
PL/PgSQL
21 lines
361 B
PL/PgSQL
-- Verify camper:payment_redsys_response on pg
|
|
|
|
begin;
|
|
|
|
select payment_id
|
|
, response_code
|
|
, date_time
|
|
, secure_payment
|
|
, transaction_type
|
|
, amount
|
|
, currency_code
|
|
, order_number
|
|
, authorization_code
|
|
, merchant_code
|
|
, terminal_number
|
|
, error_code
|
|
from camper.payment_redsys_response
|
|
where false;
|
|
|
|
rollback;
|