|
|
|
@ -747,7 +747,7 @@ begin
|
|
|
|
|
where "transaction".transaction_uuid = _transaction_uuid;
|
|
|
|
|
end; $function$;
|
|
|
|
|
|
|
|
|
|
create or replace function sos.add_stripe_payment_to_transaction(_transaction_uuid uuid, _payment_value_cents integer, _stripe_intent_id text, _stripe_reciept_email citext)
|
|
|
|
|
create or replace function sos.add_stripe_payment_to_transaction(_transaction_uuid uuid, _payment_value_cents integer, _stripe_intent_id text, _stripe_receipt_email citext, _stripe_receipt_number text)
|
|
|
|
|
returns setof sos.v_order
|
|
|
|
|
language plpgsql
|
|
|
|
|
as $function$
|
|
|
|
@ -779,12 +779,14 @@ begin
|
|
|
|
|
payment_uuid,
|
|
|
|
|
payment_type,
|
|
|
|
|
stripe_payment_intent_id,
|
|
|
|
|
stripe_reciept_email
|
|
|
|
|
stripe_receipt_email,
|
|
|
|
|
stripe_receipt_number
|
|
|
|
|
) values (
|
|
|
|
|
_payment_uuid,
|
|
|
|
|
'stripe',
|
|
|
|
|
_stripe_intent_id,
|
|
|
|
|
_stripe_reciept_email
|
|
|
|
|
_stripe_receipt_email,
|
|
|
|
|
_stripe_receipt_number
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
select
|
|
|
|
|