I have an Events Registration component which allows payment via PayPal, while I've figured out how to pull the amount to pay, would like to ask how I can create an adhoc invoice everytime such a payment is made (I need proper accounting records for payments). The person paying may or may not be a registered user - if not registered, their details will be input into the events registration component, which I can probably pull out and feed into nBill, only question is how exactly can I do that?
Currently the flow is: view event -> Register for event with name and contact details (not needed for registered users) -> Payment via PayPal -> event component notified of payment -> Successful registration
Ideally the flow will be: View event -> Register for event with name and contact details -> View invoice (under nBill) -> Payment via PayPal -> nBill notified of payment -> event component notified of payment -> Successful registration
If there is some way to break the original flow and let the event component process the PayPal payment, that would work for me as well. For that case, I will need some code to create the invoice up front, and another to notify nBill of the payment. Thanks for your help in advance!
