When the Gateway creates an invoice for a scheduled payment, it captures all relevant details from the Gateway Event. These specifics, including the payment amount, due date, and associated account information, are then securely stored in this location for future reference and processing.
In the Gateway Invoice, there is a function where you can cancel an open invoice. See
When processing an invoice,
An invoice will be generated and the payment will be processed
Assuming the webhook events are configured properly:
If the PosiPay Settings custom setting’s Charge Will Create Gateway Invoice = TRUE,
A Gateway Transaction record is created where:
The Gateway Transaction record is possible to link to the open Gateway Invoice record
If the PosiPay Settings custom setting’s Charge Will Create Gateway Invoice = FALSE,
Only one Gateway Invoice record is created
A Gateway Transaction record is created where:
The Gateway Transaction record will be orphaned for 30 minutes
Wait for 30 minutes or so for the Gateway Transaction record to be linked to the Gateway Invoice record where Invoice ID = Gateway Transaction’s Invoice ID
Invoice Cancellation
In the Gateway Invoice, there is a function where you can cancel an open invoice. A Gateway Invoice record that has invoice status of open can process a cancellation and when you click the Cancel Invoice button a message will pop up confirming the process is successfully cancelled.
If the Gateway Invoice status is not open, then you cannot process a cancellation, and a message will pop up when you click the Cancel Invoice button.
Once the cancellation succeeded the Gateway Invoice where:
Invoice Status = Void
Canceled Date = Canceled Date from the parsed payload
Other fields are populated based on the parsed payload
The Gateway Transaction record that links to the Gateway Invoice record is updated where:
Transaction Status = Canceled
Canceled Date = Canceled Date from the parsed payload
Other fields are populated based on the parsed payload.