Skip to content

Commit

Permalink
update invoice value based on plan value - fix #63
Browse files Browse the repository at this point in the history
  • Loading branch information
allgood committed Jul 25, 2024
1 parent ffbaa42 commit 47f903d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions backend/src/services/PaymentGatewayServices/EfiServices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ export const efiCreateSubscription = async (
const efiPay = new EfiPay(efiOptions);
const pix = await efiPay.pixCreateImmediateCharge([], body);
await invoice.update({
value: price,
txId: pix.txid,
payGw: "efi",
payGwData: JSON.stringify(pix)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ export const owenCreateSubscription = async (
qrData
);
invoice.update({
value: price,
txId: qrResult.data.data.qrcodeId,
payGw: "owen",
payGwData: JSON.stringify(qrResult.data.data)
Expand Down

0 comments on commit 47f903d

Please sign in to comment.