You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`Registered payment of ${withCurrency} by ${name} (${email}) for payment link ${paymentLinkId} invoice ID ${unmarshalledEntry.invoiceId}). Invoice was paid ${paidInFull ? "in full." : "partially."}`,
396
-
);
395
+
397
396
// Notify link owner of payment
398
397
letqueueId;
399
-
if(unmarshalledEntry.userId.includes("@")){
398
+
if(event.data.object.payment_status==="unpaid"){
400
399
request.log.info(
401
-
`Sending email to ${unmarshalledEntry.userId}...`,
400
+
`Pending payment of ${withCurrency} by ${name} (${email}) for payment link ${paymentLinkId} invoice ID ${unmarshalledEntry.invoiceId}). Invoice was tentatively paid ${paidInFull ? "in full." : "partially."}`,
subject: `Payment Recieved for Invoice ${unmarshalledEntry.invoiceId}`,
413
-
content: `ACM @ UIUC has received ${paidInFull ? "full" : "partial"} payment for Invoice ${unmarshalledEntry.invoiceId} (${withCurrency} paid by ${name}, ${email}).\n\nPlease contact Officer Board with any questions.`,
subject: `Payment Pending for Invoice ${unmarshalledEntry.invoiceId}`,
416
+
content: `
417
+
ACM @ UIUC has received intent of ${paidInFull ? "full" : "partial"} payment for Invoice ${unmarshalledEntry.invoiceId} (${withCurrency} paid by ${name}, ${email}).
418
+
419
+
The payee has used a payment method which does not settle funds immediately. Therefore, ACM @ UIUC is still waiting for funds to settle and no services should be performed until the funds settle.
`Registered payment of ${withCurrency} by ${name} (${email}) for payment link ${paymentLinkId} invoice ID ${unmarshalledEntry.invoiceId}). Invoice was paid ${paidInFull ? "in full." : "partially."}`,
430
445
);
431
-
queueId=result.MessageId||"";
432
-
}
433
-
// If full payment is done, disable the link
434
-
if(paidInFull){
435
-
request.log.debug("Paid in full, disabling link.");
subject: `Payment Recieved for Invoice ${unmarshalledEntry.invoiceId}`,
460
+
content: `
461
+
ACM @ UIUC has received ${paidInFull ? "full" : "partial"} payment for Invoice ${unmarshalledEntry.invoiceId} (${withCurrency} paid by ${name}, ${email}).
462
+
463
+
This invoice should now be considered settled.
464
+
465
+
Please contact Officer Board with any questions.`,
0 commit comments