The Process Payment Batch Event can be triggered using Custom Logic. The following parameters are Required to execute the Event.
Code Block |
---|
language | php |
---|
title | Process Payment Batch |
---|
collapselinenumbers | true |
---|
|
/**
* Event: Process Payment Batch
* Listener Class: Application_Model_Payment_PaymentBatch
* Listener Method: eventProcessBatch
*/
PCR_Event::attachDb(
"process-payment-batch",
["Application_Model_Payment_PaymentBatch" =>
{
"eventProcessBatch"]
);
PCR_Event::trigger(
"process-payment-batch",
[
"BATCH_RECID": => "1",
"eventBroadcastBy": => "216121",
"eventBroadcastTime": => "Oct 4, 2022, 10:08 am",
"eventBroadcastDayofWeek": => "2",
"eventBroadcastHourMin": => "1008",
]
}); |