This page provides the list of events and associated payload for internal events (via RabbitMQ/AWS MQ) and external events (via EventBridge) for the Payment microservice.

External Events via EventBridge

The following events contain the entity changed in the event message payload.

List of Events

S.N0.API CALLCALL DETAILEVENT TYPE
1POSTCreateProviderMasterpaymentservice/providermaster/create
2PATCHPatchProviderMasterpaymentservice/providermaster/patch
3POSTCreatePaymentpaymentservice/payment/create
4POSTCreatePaymentItempaymentservice/paymentitem/create
5PUTUpdatePaymentItempaymentservice/paymentitem/update
6POSTCreateTransactionpaymentservice/transaction/create
7PATCHPatchTransactionpaymentservice/transaction/patch
8POSTCreateBulkTransactionpaymentservice/bulktransaction/create
9DELETEDeleteTransactionPropertypaymentservice/transactionproperty/delete
10DELETEDeleteTransactionpaymentservice/transaction/delete
11DELETEDeletePaymentitemPropertypaymentservice/paymentitemproperty/delete
12DELETEDeletePaymentItempaymentservice/paymentitem/delete
13PATCHPatchPaymentpaymentservice/payment/patch
14DELETEDeletePaymentpaymentservice/payment/delete
15DELETEDeleteProviderMasterPropertypaymentservice/providermasterproperty/delete
16DELETEDeleteProviderMasterpaymentservice/providermaster/delete
17POSTCreatePaymentoptionpaymentservice/paymentoption/create
18PATCHPatchPaymentoptionpaymentservice/paymentoption/patch
19DELETEDeletePaymentoptionpaymentservice/paymentoption/delete
20PUTUpdatePaymentoptionpaymentservice/paymentoption/update
21PATCHPatchPaymentoptionPropertypaymentservice/paymentoptionproperty/patch
22UPDATEUpdatePaymentoptionPropertypaymentservice/paymentoptionproperty/update
23POSTCreatePaymentoptionRankingpaymentservice/paymentoptionranking/create
24UPDATEUpdatePaymentoptionRankingpaymentservice/paymentoptionranking/update
25PUTPutPaymentoptionRulepaymentservice/paymentoptionrule/put
26PATCHPatchPaymentoptionRulepaymentservice/paymentoptionrule/patch

Payload

CreateProviderMaster

Event Type: paymentservice/providermaster/create

{
  "version": "0",
  "id": "99cfb0f2-0fac-0de3-c32b-5bdf9e4e89d7",
  "detail-type": "paymentservice/providermaster/create",
  "source": "paymentservice",
  "account": "277827593990",
  "time": "2024-05-22T06:08:36Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "1139",
    "timestamp": 1716358116065,
    "payload": {
      "code": "PROVIDERMASTER_CREATED",
      "providerMaster": {
        "id": 1139,
        "name": "GOLD",
        "currencyType": "CASH",
        "processorClassName": "com.skava.payment.processor.TestPaymentProcessor",
        "supportedTypes": [
          {
            "type": "CREDITCARD"
          }
        ],
        "createdBy": "111",
        "createdTime": 1716358116030,
        "updatedBy": "111",
        "updatedTime": 1716358116030
      }
    },
    "collectionId": "1211",
    "eventType": "paymentservice/providermaster/create",
    "userId": "111",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

PatchProviderMaster

Event Type: paymentservice/providermaster/patch

{
  "version": "0",
  "id": "9cb9140b-68d9-bd20-2432-e300117a9bab",
  "detail-type": "paymentservice/providermaster/patch",
  "source": "paymentservice",
  "account": "277827593990",
  "time": "2024-05-22T06:08:39Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "1139",
    "timestamp": 1716358119501,
    "payload": {
      "code": "PROVIDERMASTER_UPDATED",
      "providerMaster": {
        "id": 1139,
        "name": "GOLD",
        "currencyType": "CASH",
        "processorClassName": "com.skava.payment.processor.TestPaymentProcessor",
        "supportedTypes": [
          {
            "type": "CREDITCARD"
          }
        ],
        "attributes": [
          
        ],
        "properties": [
          {
            "name": "TESTING",
            "value": "1"
          }
        ],
        "createdBy": "111",
        "createdTime": 1716358116000,
        "updatedBy": "111",
        "updatedTime": 1716358116000
      }
    },
    "collectionId": "1211",
    "eventType": "paymentservice/providermaster/patch",
    "userId": "111",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

CreatePayment

Event Type: paymentservice/payment/create

{
  "version": "0",
  "id": "524e2927-f67d-75fd-3e2a-d00f64dcc84a",
  "detail-type": "paymentservice/payment/create",
  "source": "paymentservice",
  "account": "277827593990",
  "time": "2024-05-22T06:08:46Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "timestamp": 1716358126340,
    "payload": {
      "code": "PAYMENT_CREATED",
      "payment": {
        "id": 4409,
        "collectionId": 1211,
        "name": "GOLD",
        "showInProfile": false,
        "type": "CREDITCARD",
        "status": "ACTIVE",
        "userId": "1",
        "billingAddress": {
          "firstName": "externalevents",
          "lastName": "si",
          "addressLine1": "2 front street",
          "addressLine2": "2",
          "addressLine3": "string",
          "city": "Sanfransico",
          "state": "US",
          "zipcode": "94111",
          "country": "US",
          "county": "NY",
          "phoneNumber": "7894586231",
          "email": "externalevents@mailinator.com"
        },
        "providers": [
          {
            "id": 4409,
            "token": "58f5f7cb-dd16-42ef-b590-3267eabb16f7",
            "createdBy": "111",
            "createdTime": 1716358126330
          }
        ],
        "paymentProperties": [
          
        ],
        "createdBy": "111",
        "createdTime": 1716358126328,
        "updatedBy": "111",
        "updatedTime": 1716358126328,
        "default": false
      }
    },
    "collectionId": "1211",
    "eventType": "paymentservice/payment/create",
    "userId": "111",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

CreatePaymentItem

Event Type: paymentservice/paymentitem/create

{
  "version": "0",
  "id": "9623cda6-8713-225f-897d-6d0dfe36bd33",
  "detail-type": "paymentservice/paymentitem/create",
  "source": "paymentservice",
  "account": "277827593990",
  "time": "2024-05-22T06:08:49Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "timestamp": 1716358129614,
    "payload": {
      "code": "PAYMENTITEM_CREATED",
      "paymentItem": {
        "id": 1531,
        "paymentId": 4409,
        "providerId": 4409,
        "currencyCode": "DOLLAR",
        "value": 9999,
        "properties": [
          {
            "name": "TEST",
            "value": "1"
          }
        ],
        "updatedBy": "111",
        "updatedTime": 1716358129599,
        "createdBy": "111",
        "createdTime": 1716358129599
      }
    },
    "collectionId": "1211",
    "eventType": "paymentservice/paymentitem/create",
    "userId": "111",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

UpdatePaymentItem

Event Type: paymentservice/paymentitem/update

{
  "version": "0",
  "id": "4787e042-38e2-fc16-e9c5-6badd79e8a8c",
  "detail-type": "paymentservice/paymentitem/update",
  "source": "paymentservice",
  "account": "277827593990",
  "time": "2024-05-22T06:08:52Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "1531",
    "timestamp": 1716358132872,
    "payload": {
      "code": "PAYMENTITEM_UPDATED",
      "paymentItem": {
        "id": 1531,
        "paymentId": 4409,
        "providerId": 4409,
        "currencyCode": "DOLLAR",
        "value": 9900,
        "properties": [
          {
            "name": "TEST",
            "value": "1"
          },
          {
            "name": "FIRSTTEST",
            "value": "6"
          }
        ],
        "updatedBy": "111",
        "updatedTime": 1716358132860,
        "createdBy": "111",
        "createdTime": 1716358129599
      }
    },
    "collectionId": "1211",
    "eventType": "paymentservice/paymentitem/update",
    "userId": "111",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

CreateTransaction

Event Type: paymentservice/transaction/create

{
  "version": "0",
  "id": "99f85cfd-d024-a892-5a5b-df43c2e6f631",
  "detail-type": "paymentservice/transaction/create",
  "source": "paymentservice",
  "account": "277827593990",
  "time": "2024-05-22T06:08:56Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "timestamp": 1716358136136,
    "payload": {
      "responseCode": "NONE",
      "code": "TRANSACTION_CREATED",
      "transaction": {
        "id": 1412,
        "value": 500,
        "type": "PREAUTH",
        "status": "SUCCESS",
        "responseCode": "NONE",
        "paymentItemId": 1531,
        "properties": [
          {
            "name": "PLATINUM",
            "value": "1"
          },
          {
            "name": "confirmationCode",
            "value": "248ade49-b4e9-4f2c-96f9-6009891d58c7"
          }
        ],
        "createdBy": "111",
        "createdTime": 1716358136125,
        "updatedBy": "111",
        "updatedTime": 1716358136125
      }
    },
    "collectionId": "1211",
    "eventType": "paymentservice/transaction/create",
    "userId": "111",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

PatchTransaction

Event Type: paymentservice/transaction/patch

{
  "version": "0",
  "id": "1c4cab6b-2f64-5635-95f4-5b6a0046f77d",
  "detail-type": "paymentservice/transaction/patch",
  "source": "paymentservice",
  "account": "277827593990",
  "time": "2024-05-22T06:08:59Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "timestamp": 1716358139377,
    "payload": {
      "code": "TRANSACTION_UPDATED",
      "transaction": {
        "id": 1412,
        "value": 500.0,
        "type": "PREAUTH",
        "status": "SUCCESS",
        "responseCode": "PATCH updated",
        "paymentItemId": 1531,
        "properties": [
          {
            "name": "confirmationCode",
            "value": "248ade49-b4e9-4f2c-96f9-6009891d58c7"
          },
          {
            "name": "PLATINUM",
            "value": "1"
          }
        ],
        "createdBy": "111",
        "createdTime": 1716358136000,
        "updatedBy": "111",
        "updatedTime": 1716358136000
      }
    },
    "collectionId": "1211",
    "eventType": "paymentservice/transaction/patch",
    "userId": "111",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

CreateBulkTransaction

Event Type: paymentservice/bulktransaction/create

{
  "version": "0",
  "id": "dbc7ec89-a293-118c-eda4-0a20c63f93e1",
  "detail-type": "paymentservice/bulktransaction/create",
  "source": "paymentservice",
  "account": "277827593990",
  "time": "2024-05-22T06:09:02Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "timestamp": 1716358142639,
    "payload": {
      "code": "TRANSACTION_CREATED",
      "transactions": [
        {
          "id": 1413,
          "value": 1,
          "type": "PREAUTH",
          "status": "SUCCESS",
          "responseCode": "NONE",
          "paymentItemId": 1531,
          "properties": [
            {
              "name": "WELCOME",
              "value": "1"
            },
            {
              "name": "confirmationCode",
              "value": "7b0bcfa2-7a0f-43e1-8cd2-cd9699dc149e"
            }
          ],
          "createdBy": "111",
          "createdTime": 1716358142625,
          "updatedBy": "111",
          "updatedTime": 1716358142625
        }
      ]
    },
    "collectionId": "1211",
    "eventType": "paymentservice/bulktransaction/create",
    "userId": "111",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

DeleteTransactionProperty

Event Type: paymentservice/transactionproperty/delete

{
  "version": "0",
  "id": "1e84e312-94c1-cc4a-6c04-2126f955d063",
  "detail-type": "paymentservice/transactionproperty/delete",
  "source": "paymentservice",
  "account": "277827593990",
  "time": "2024-05-22T06:09:05Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "1414",
    "timestamp": 1716358145971,
    "payload": {
      "code": "PAYMENT_PROP_DELETED",
      "transaction": {
        "id": 1414,
        "value": 500.0,
        "type": "PREAUTH",
        "status": "SUCCESS",
        "responseCode": "NONE",
        "paymentItemId": 1531,
        "properties": [
          {
            "name": "confirmationCode",
            "value": "6c457377-f7bc-4648-9b83-ffe277169f90"
          }
        ],
        "createdBy": "111",
        "createdTime": 1716358146000,
        "updatedBy": "111",
        "updatedTime": 1716358146000
      }
    },
    "collectionId": "1211",
    "eventType": "paymentservice/transactionproperty/delete",
    "userId": "111",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

DeleteTransaction

Event Type: paymentservice/transaction/delete

{
  "version": "0",
  "id": "23aeb0c3-5709-84fa-6b0b-7f648a940c65",
  "detail-type": "paymentservice/transaction/delete",
  "source": "paymentservice",
  "account": "277827593990",
  "time": "2024-05-22T06:09:09Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "1415",
    "timestamp": 1716358149291,
    "payload": {
      "code": "TRANSACTION_DELETED"
    },
    "collectionId": "1211",
    "eventType": "paymentservice/transaction/delete",
    "userId": "111",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

DeletePaymentitemProperty

Event Type: paymentservice/paymentitemproperty/delete

{
  "version": "0",
  "id": "6dfda826-9e53-c918-932f-ca3a812c75d6",
  "detail-type": "paymentservice/paymentitemproperty/delete",
  "source": "paymentservice",
  "account": "277827593990",
  "time": "2024-05-22T06:09:12Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "1531",
    "timestamp": 1716358152506,
    "payload": {
      "code": "PAYMENT_PROP_DELETED",
      "paymentItem": {
        "id": 1531,
        "paymentId": 4409,
        "providerId": 4409,
        "currencyCode": "DOLLAR",
        "value": 9900,
        "properties": [
          {
            "name": "FIRSTTEST",
            "value": "6"
          }
        ],
        "updatedBy": "111",
        "updatedTime": 1716358152492,
        "createdBy": "111",
        "createdTime": 1716358129599
      }
    },
    "collectionId": "1211",
    "eventType": "paymentservice/paymentitemproperty/delete",
    "userId": "111",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

DeletePaymentItem

Event Type: paymentservice/paymentitem/delete

{
  "version": "0",
  "id": "bd13f997-27e9-9a75-3890-d5704dd145a3",
  "detail-type": "paymentservice/paymentitem/delete",
  "source": "paymentservice",
  "account": "277827593990",
  "time": "2024-05-22T06:09:15Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "1532",
    "timestamp": 1716358155757,
    "payload": {
      "responseCode": "PYMT_ITM_DEL_200",
      "responseMessage": "PaymentItem deleted",
      "timeStamp": "1716358155756"
    },
    "collectionId": "1211",
    "eventType": "paymentservice/paymentitem/delete",
    "userId": "111",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

PatchPayment

Event Type: paymentservice/payment/patch

{
  "version": "0",
  "id": "6ccd90f3-83c8-ef28-f1a4-58d5e80bf1d6",
  "detail-type": "paymentservice/payment/patch",
  "source": "paymentservice",
  "account": "277827593990",
  "time": "2024-05-22T06:09:19Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "timestamp": 1716358159068,
    "payload": {
      "code": "PAYMENT_CREATED",
      "payment": {
        "id": 4410,
        "collectionId": 1211,
        "name": "GOLD",
        "showInProfile": false,
        "type": "CREDITCARD",
        "status": "ACTIVE",
        "userId": "1",
        "billingAddress": {
          "firstName": "saran",
          "lastName": "si",
          "addressLine1": "1 front street",
          "addressLine2": "2",
          "addressLine3": "string",
          "city": "Sanfransico",
          "state": "US",
          "zipcode": "94111",
          "country": "US",
          "county": "NY",
          "phoneNumber": "7854621459",
          "email": "saran@gmail.com"
        },
        "providers": [
          {
            "id": 4410,
            "token": "eed74647-106f-4d2f-9145-7625148bd7c0",
            "createdBy": "1",
            "createdTime": 1716358159011
          }
        ],
        "paymentProperties": [
          
        ],
        "createdBy": "111",
        "createdTime": 1716358159009,
        "updatedBy": "111",
        "updatedTime": 1716358159009,
        "default": true
      }
    },
    "collectionId": "1211",
    "eventType": "paymentservice/payment/patch",
    "userId": "111",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

DeletePayment

Event Type: paymentservice/payment/delete

{
  "version": "0",
  "id": "b6ca9bd3-f50d-24c4-f8e1-7d9d0933e112",
  "detail-type": "paymentservice/payment/delete",
  "source": "paymentservice",
  "account": "277827593990",
  "time": "2024-05-22T06:09:24Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "timestamp": 1716358164454,
    "payload": {
      "responseCode": "PYMT_DEL_200",
      "responseMessage": "Payment deleted",
      "timeStamp": "1716358164452"
    },
    "collectionId": "1211",
    "eventType": "paymentservice/payment/delete",
    "userId": "111",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

DeleteProviderMasterProperty

Event Type: paymentservice/providermasterproperty/delete

{
  "version": "0",
  "id": "bc6b936a-d3eb-803e-3645-149ac0a85f7a",
  "detail-type": "paymentservice/providermasterproperty/delete",
  "source": "paymentservice",
  "account": "277827593990",
  "time": "2024-05-22T06:09:27Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "1141",
    "timestamp": 1716358167734,
    "payload": {
      "code": "PAYMENT_PROP_DELETED",
      "providerMaster": {
        "id": 1141,
        "name": "GOLD",
        "currencyType": "CASH",
        "processorClassName": "com.skava.payment.processor.TestPaymentProcessor",
        "supportedTypes": [
          {
            "type": "CREDITCARD"
          }
        ],
        "attributes": [
          
        ],
        "properties": [
          
        ],
        "createdBy": "111",
        "createdTime": 1716358168000,
        "updatedBy": "111",
        "updatedTime": 1716358168000
      }
    },
    "collectionId": "1211",
    "eventType": "paymentservice/providermasterproperty/delete",
    "userId": "111",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

DeleteProviderMaster

Event Type: paymentservice/providermaster/delete

{
  "version": "0",
  "id": "7089293d-aeb5-8112-cc04-5230a117b967",
  "detail-type": "paymentservice/providermaster/delete",
  "source": "paymentservice",
  "account": "277827593990",
  "time": "2024-05-22T06:09:30Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "1142",
    "timestamp": 1716358170995,
    "payload": {
      "code": "PROVIDERMASTER_DELETED"
    },
    "collectionId": "1211",
    "eventType": "paymentservice/providermaster/delete",
    "userId": "111",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

CreatePaymentoption

Event Type: paymentservice/paymentoption/create

{
  "version": "0",
  "id": "a5585cff-0d5a-9e46-38c1-7e248869a2cb",
  "detail-type": "paymentservice/paymentoption/create",
  "source": "paymentservice",
  "account": "277827593990",
  "time": "2024-05-22T06:09:34Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "66",
    "timestamp": 1716358174402,
    "payload": {
      "paymentOptionId": 66,
      "collectionId": 1213,
      "appId": "string",
      "source": "string",
      "marketplaceAppInstallId": 0,
      "appVersion": "string",
      "appImage": "string",
      "appName": "string",
      "status": true,
      "processType": "string",
      "recurrentPayment": true,
      "paymentPeriodStart": 1716358174357,
      "paymentPeriodEnd": 1716790174357,
      "creditCustomers": true,
      "createdDate": 1716358174371,
      "createdBy": "111",
      "updatedDate": 1716358174371,
      "updatedBy": "111",
      "properties": [
        {
          "paymentOptionPropertyId": 241,
          "name": "string",
          "value": "string",
          "locale": "string",
          "createdDate": 1716358174394,
          "updatedDate": 1716358174394,
          "createdBy": "111",
          "updatedBy": "111"
        }
      ],
      "rule": {
        "paymentOptionRuleId": 81,
        "paymentOptionId": 66,
        "collectionId": 1213,
        "ruleString": "string",
        "ruleJSON": "string",
        "createdDate": 1716358174381,
        "updatedDate": 1716358174381,
        "createdBy": "111",
        "updatedBy": "111"
      }
    },
    "collectionId": "1213",
    "eventType": "paymentservice/paymentoption/create",
    "userId": "111",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

PatchPaymentoption

Event Type: paymentservice/paymentoption/patch

{
  "version": "0",
  "id": "203ae71b-5055-0bb4-20f2-3e397f996e3b",
  "detail-type": "paymentservice/paymentoption/patch",
  "source": "paymentservice",
  "account": "277827593990",
  "time": "2024-05-22T06:09:37Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "66",
    "timestamp": 1716358177621,
    "payload": {
      "paymentOptionId": 66,
      "collectionId": 1213,
      "appId": "appID_17163581776026813",
      "source": "string",
      "marketplaceAppInstallId": 0,
      "appVersion": "string",
      "appImage": "string",
      "appName": "KLYL5C1e22",
      "status": true,
      "processType": "string",
      "recurrentPayment": true,
      "paymentPeriodStart": 1716358174000,
      "paymentPeriodEnd": 1716790174000,
      "creditCustomers": true,
      "createdDate": 1716358174000,
      "createdBy": "111",
      "updatedDate": 1716358174000,
      "updatedBy": "111",
      "properties": [
        {
          "paymentOptionPropertyId": 241,
          "name": "string",
          "value": "string",
          "locale": "string",
          "createdDate": 1716358174000,
          "updatedDate": 1716358174000,
          "createdBy": "111",
          "updatedBy": "111"
        }
      ],
      "rule": {
        "paymentOptionRuleId": 81,
        "paymentOptionId": 66,
        "collectionId": 1213,
        "ruleString": "string",
        "ruleJSON": "string",
        "createdDate": 1716358174000,
        "updatedDate": 1716358174000,
        "createdBy": "111",
        "updatedBy": "111"
      }
    },
    "collectionId": "1213",
    "eventType": "paymentservice/paymentoption/patch",
    "userId": "111",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

DeletePaymentoption

Event Type: paymentservice/paymentoption/delete

{
  "version": "0",
  "id": "c925f8e1-3973-9630-43ae-391c4bf8b9fb",
  "detail-type": "paymentservice/paymentoption/delete",
  "source": "paymentservice",
  "account": "277827593990",
  "time": "2024-05-22T06:09:48Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "timestamp": 1716358188436,
    "payload": {
      "responseCode": "PAYPO000",
      "responseMessage": "PaymentOptionId deleted Successfully",
      "timeStamp": "1716358188434"
    },
    "collectionId": "1215",
    "eventType": "paymentservice/paymentoption/delete",
    "userId": "111",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

UpdatePaymentoption

Event Type: paymentservice/paymentoption/update

{
  "version": "0",
  "id": "1395fcf5-5092-e000-f002-f58d2892e1d3",
  "detail-type": "paymentservice/paymentoption/update",
  "source": "paymentservice",
  "account": "277827593990",
  "time": "2024-05-22T06:09:51Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "66",
    "timestamp": 1716358191642,
    "payload": {
      "paymentOptionId": 66,
      "collectionId": 1213,
      "appId": "appID_17163581916285452",
      "marketplaceAppInstallId": 0,
      "appVersion": "string123",
      "appName": "8k9O0c4YVT",
      "status": true,
      "createdDate": 1716358174000,
      "createdBy": "111",
      "updatedBy": "111"
    },
    "collectionId": "1213",
    "eventType": "paymentservice/paymentoption/update",
    "userId": "111",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

PatchPaymentoptionProperty

Event Type: paymentservice/paymentoptionproperty/patch

{
  "version": "0",
  "id": "7f3377b8-8e85-638e-b20a-9f13f40264ae",
  "detail-type": "paymentservice/paymentoptionproperty/patch",
  "source": "paymentservice",
  "account": "277827593990",
  "time": "2024-05-22T06:09:54Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "timestamp": 1716358194830,
    "payload": {
      "paymentOptionProperty": [
        {
          "paymentOptionPropertyId": 241,
          "name": "string",
          "value": "bPH07bn3",
          "locale": "L7YDPEsBK",
          "createdDate": 1716358174000,
          "updatedDate": 1716358192000,
          "createdBy": "111",
          "updatedBy": "111"
        }
      ]
    },
    "collectionId": "1213",
    "eventType": "paymentservice/paymentoptionproperty/patch",
    "userId": "111",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

UpdatePaymentoptionProperty

Event Type: paymentservice/paymentoptionproperty/update

{
  "version": "0",
  "id": "721bb0b5-d8d6-8b2d-90fb-86b178fd7d84",
  "detail-type": "paymentservice/paymentoptionproperty/update",
  "source": "paymentservice",
  "account": "277827593990",
  "time": "2024-05-22T06:09:58Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "timestamp": 1716358198019,
    "payload": {
      "paymentOptionProperty": [
        {
          "paymentOptionPropertyId": 241,
          "name": "string",
          "value": "5skPl8HTHV",
          "locale": "7iC4bq9JJ",
          "createdDate": 1716358174000,
          "updatedDate": 1716358192000,
          "createdBy": "111",
          "updatedBy": "111"
        }
      ]
    },
    "collectionId": "1213",
    "eventType": "paymentservice/paymentoptionproperty/update",
    "userId": "111",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

CreatePaymentoptionRanking

Event Type: paymentservice/paymentoptionranking/create

{
  "version": "0",
  "id": "7afd1ae1-b747-b442-c284-8fdd89aaea71",
  "detail-type": "paymentservice/paymentoptionranking/create",
  "source": "paymentservice",
  "account": "277827593990",
  "time": "2024-05-22T06:10:01Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "timestamp": 1716358201243,
    "payload": {
      "paymentOptionDisplayOrderId": 8,
      "collectionID": 1213,
      "sortMethod": "string",
      "sortOrder": "string",
      "createdDate": 1716358201232,
      "updatedDate": 1716358201232,
      "createdBy": "111",
      "updatedBy": "111"
    },
    "collectionId": "1213",
    "eventType": "paymentservice/paymentoptionranking/create",
    "userId": "111",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

UpdatePaymentoptionRanking

Event Type: paymentservice/paymentoptionranking/update

{
  "version": "0",
  "id": "0ca87909-a75d-12b2-cb13-398beabc5818",
  "detail-type": "paymentservice/paymentoptionranking/update",
  "source": "paymentservice",
  "account": "277827593990",
  "time": "2024-05-22T06:10:04Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "8",
    "timestamp": 1716358204599,
    "payload": {
      "paymentOptionDisplayOrderId": 8,
      "collectionID": 1213,
      "sortMethod": "rheGHIpZM",
      "sortOrder": "rVTSVDD",
      "createdDate": 1716358201000,
      "updatedDate": 1716358204590,
      "createdBy": "111",
      "updatedBy": "111"
    },
    "collectionId": "1213",
    "eventType": "paymentservice/paymentoptionranking/update",
    "userId": "111",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

PutPaymentoptionRule

Event Type: paymentservice/paymentoptionrule/put

{
  "version": "0",
  "id": "cd1c8674-5373-8039-ed9a-7152dec26297",
  "detail-type": "paymentservice/paymentoptionrule/put",
  "source": "paymentservice",
  "account": "277827593990",
  "time": "2024-05-22T06:10:07Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "81",
    "timestamp": 1716358207792,
    "payload": {
      "paymentOptionRuleId": 81,
      "paymentOptionId": 66,
      "collectionId": 1213,
      "ruleString": "Teaqeo",
      "ruleJSON": "xrkmQpeZvE",
      "createdDate": 1716358174000,
      "updatedDate": 1716358174000,
      "createdBy": "111",
      "updatedBy": "111"
    },
    "collectionId": "1213",
    "eventType": "paymentservice/paymentoptionrule/put",
    "userId": "111",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

PatchPaymentoptionRule

Event Type: paymentservice/paymentoptionrule/patch

{
  "version": "0",
  "id": "a9391737-8716-6445-70eb-29c81be5ade5",
  "detail-type": "paymentservice/paymentoptionrule/patch",
  "source": "paymentservice",
  "account": "277827593990",
  "time": "2024-05-22T06:10:11Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "81",
    "timestamp": 1716358211026,
    "payload": {
      "paymentOptionRuleId": 81,
      "paymentOptionId": 66,
      "collectionId": 1213,
      "ruleString": "CFYEQInxe",
      "ruleJSON": "dIbQgly",
      "createdDate": 1716358174000,
      "updatedDate": 1716358208000,
      "createdBy": "111",
      "updatedBy": "111"
    },
    "collectionId": "1213",
    "eventType": "paymentservice/paymentoptionrule/patch",
    "userId": "111",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

Internal Events via RabbitMQ/AWS MQ

The following events communicate with the internal microservices.

List of Events

SL.#NAMEDESCRIPTIONPUBLISH LOCATIONROUTING KEYDURABILITYPAYLOAD TYPE
1Provider Master CreatedThis event is triggered when the provider master is created.Topic: PaymentMsgTopicprovidermaster.createdfalseProviderMaster
2Provider Master UpdatedThis event is triggered when the provider master is updated.Topic: PaymentMsgTopicprovidermaster.updatedfalseProviderMaster
3Collection Provider CreatedThis event is triggered when the collection provider is created.Topic: PaymentMsgTopiccollectionprovider.createdfalseCollectionProvider
4Collection Provider UpdatedThis event is triggered when the collection provider is updated.Topic: PaymentMsgTopiccollectionprovider.updatedfalseCollectionProvider
5Payment CreatedThis event is triggered when the payment is created.Topic: PaymentMsgTopicpayment.createdfalsePayment
6Payment UpdatedThis event is triggered when the payment is updated.Topic: PaymentMsgTopicpayment.updatedfalsePayment
7Payment Item CreatedThis event is triggered when the payment item is created.Topic: PaymentMsgTopicpaymentitem.createdfalsePaymentItem
8Payment Item UpdatedThis event is triggered when the payment item is updated.Topic: PaymentMsgTopicpaymentitem.updatedfalsePaymentItem
9Transaction CreatedThis event is triggered when the transaction is created.Topic: PaymentMsgTopictransaction.createdfalseTransaction
10Payment Bulk Transaction RequestPayment service is subscribed to the provided event to charge, refund, or authorize the payment. When the order has to be authorized with the payment given by the user, either charge for the order or refund the amount to the user if the order is canceled, deleted, or returned.Queue: bulkTransactionRequestQueuebulkTransactionRequestQueuetrueBulkTransactionRequestQueue

Payload Models

Below are payloads for the Payment microservice.

ProviderMaster

PROPERTYTYPEDESCRIPTIONEXAMPLE
nameStringIndicates the name of the event.PROVIDERMASTER_CREATED, PROVIDERMASTER_UPDATED
providerMaster.providerMasterIdIntegerIndicates the unique ID of the provider master.1
providerMaster.nameStringIndicates the name of the created or updated provider master.provider1
providerMaster.currencyTypeStringIndicates the currency type of the provider master.CASH/NONCASH
providerMaster.processorClassNameStringIndicates the class name, which implements the payment processor.com.skava.payment.processor.DefaultPaymentProcessor

CollectionProvider

PROPERTYTYPEDESCRIPTIONEXAMPLE
nameStringIndicates the name of the event.COLLECTIONPROVIDER_CREATED, COLLECTIONPROVIDER_UPDATED
collectionProviderIdIntegerIndicates the unique ID of the collection provider.1
providerMasterIdIntegerIndicates the unique ID of the provider Master.1

Payment

PROPERTYTYPEDESCRIPTIONEXAMPLE
nameStringIndicates the name of the transaction.PAYMENT_CREATED, PAYMENT_UPDATED
payment.paymentIdIntegerIndicates the unique ID of the payment.1
payment.paymentTypeStringIndicates the type of the payment.CREDITCARD
payment.statusStringIndicates the status of the created or updated payment.ACTIVE
payment.profileIdStringIndicates the unique ID of the profile. It can be ID of the user or account.1
payment.profiletypeStringIndicates the type of the profile.USER/ACCOUNT

PaymentItem

PROPERTYTYPEDESCRIPTIONEXAMPLE
nameStringIndicates the name of the event.PAYMENTITEM_CREATED, PAYMENTITEM_UPDATED
paymentItem.paymenItemtIdStringIndicates the unique ID of the payment item.1
paymentItem.paymentIdStringIndicates the unique ID of the payment.1
paymentItem.providerIdStringIndicates the unique ID of the provider.1
paymentItem.currencyCodeStringIndicates the currency code.USD
paymentItem.valueBigDecimalRefers to the actual amount, currency, or points of a payment item.100

Transaction

PROPERTYTYPEDESCRIPTIONEXAMPLE
nameStringIndicates the name of the event.TRANSACTION_CREATED
transaction.transactionIdIntegerIndicates the unique ID of the transaction.1
transaction.valueIntegerRefers to the actual amount, currency, or points of a transaction.100
transaction.transactionTypeStringIndicates the currency type of the provider master.CASH
transaction.statusStringIndicates the status of the transaction.SUCCESS
transaction.responseCodeStringRefers to the response code from the third-party service.200
transaction.responseMessageStringRefers to the response message from the third-party service.SUCCESS
transaction.paymentItemIdStringIndicates the unique ID of the payment item.1

BulkTransactionRequestQueue

PROPERTYTYPEDESCRIPTIONEXAMPLE
transactions[].valuelongRefers to the actual amount, currency, or points of a transaction.1000
transactions[].typeStringRefers to the type of a transaction. The possible values are PREAUTH, AUTH, CANCELAUTH, CHARGE, REFUND and CREDIT.REFUND
transactions[].properties[].nameStringSpecifies the custom property name of the property.It is a charge transaction
transactions[].properties[].valueStringSpecifies the custom property value of the name.1000
transactions[].paymentItemIdStringIndicates the ID of the payment item.p1
transactions[].idStringIndicates the ID of the transaction.p1
transactions[].statusStringIndicates the status of the transaction.CHARGE
transactions[].responseCodeStringRefers to the response code from the third-party service.200
transactions[].responseMessageStringRefers to the response message from the third-party service.Success
transactions[].createdByStringIndicates the user, who has created the transaction.p1
transactions[].createdTimelongIndicates the timestamp (in milliseconds), when the transaction is created.1548328965
allOrNonebooleanIndicates whether all the transactions have to be processed or not.true




Revision History
2024-05-22 | SW – Added external event details for release 8.17.4
2019-05-20 | MA – Updated to a new table tool.
2019-05-07 | PLK – Minor copyedit.
2019-04-11 | MA – Content updated for April 2019 release.
2019-01-23 | PLK – Content uploaded.