x

Pass a customerid or userid with payments links thru checkout thru webhook url?

I have payment links setup and I would like to pass an ID thru the process to that my webhook can then link the payment with the id in my database.

 

I see custom fields but i want this in the background, not something the customer fills in.

 

Is there a way to place it in the payment link? Something like the below?

 <div style="padding: 20px;">
                <p class="itemDesc">$1 Test</p>
                <p class="price">$1.00</p>
                <button type="button" class="btn-lg btn-success">
                    <a target="_blank" data-url="https://square.link/u/fake?src=embd&memberid=123" href="https://square.link/u/fake?src=embed&memberid=123" style="color:white;">
                        Subscribe
                    </a>
                </button>

            </div>
 

I have a webhook setup but I don't see a way for have an ID be sent from the payment link thru the checkout and then to the payment webhook.  

 

I do not see any custom fields in the data sent with the webhook.

 

The email does make it to the webhook call, so that is my plan B, but it seems like a simple use case to allow for some ID to be passed thru the process.

 

 

112 Views
Message 1 of 2
Report
1 REPLY 1
Beta Member

Hi Mcollins323,

 

You may want to visit Square's Developer Forum, this Community is very good at small business related concerns like using Square's Apps, Hardware and selling online or in person but, not so much with topics like APIs, Webhooks, SDKs, etc.  Those areas are beyond the scope of this community however, the Developer world is.

107 Views
Message 2 of 2
Report