Send personal data to wixPayBackend.createPayment

Hi
I am using wix-pay in my site, and I 'd like to know where the buyer came from (url).
I was thinking of saving the previous url in a database or localy, and send the information from the frontend code to the backend, and handle it at wixPay_onPaymentUpdate event .

Is it possible? or another idea?

tnx