(20241218) Can now send tags to apply with the payment request itself, and can even update tags later.

This commit is contained in:
2024-12-18 10:24:42 +05:30
parent 85cc330711
commit c340ebcba5
7 changed files with 388 additions and 4 deletions
+1 -1
View File
@@ -288,7 +288,7 @@ class PaymentController:
amount = payment_request.amount,
currencyCode = payment_request.currencyCode,
metadata = payment_request.metadata.model_dump(),
tags = ["payment", "safaricom", "mPesaExpress", "kenya"],
tags = list(set(payment_request.tags + ["Payment", "Safaricom", "M-Pesa Express", "Kenya"])),
serviceType = "paymentGateway",
client = auth_token.client,
clientPaymentReferenceId = None,