question

michaelcramer avatar image
michaelcramer asked racheladmin Deactivated edited

Cloud Pay Display - able to capture email addresses?

The Fresh Market has a payment terminal that asks customers for an email address just once, and then automatically emails receipts for all subsequent purchase without having to request the email address each time. Might the Cloud Pay Display app be configured similarly to store email addresses (linking them to card numbers) or pass the data to an external POS (Springboard in our case)?

Remote Pay Cloud
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Mark Mullan avatar image
Mark Mullan Deactivated answered michaelcramer commented

Hi,

In its current state, the customer's email address is not returned to the POS via Cloud Pay Display / remote-pay-cloud SDK. That being said, by virtue of connecting to the Clover Mini via remote-pay-cloud, you already have an OAuth access_token, which can be used to fetch that customer's email address via REST.

In the CloverConnectorListener.onSaleResponse(response) callback, the orderId can be obtained through response.getPayment().getOrder().getId();. This will allow you to make a GET to https://sandbox.dev.clover.com/v3/merchants/{merchantId}/orders/{orderId}?expand=customers.emailAddresses. You'll need to use the access_token to be granted access to that resource, and ensure that Springboard Retail is requesting the necessary permissions to return 200 instead of 401. If the customer entered their email address, you'll find it in this response.

Hope that helps,

Mark

1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

michaelcramer avatar image michaelcramer commented ·

Mark, thanks for your response! Appreciate your help on this issue.

Are the actions that you recommend we undertake to obtain the OrderId and with it the customer's email address available to us, the merchant, or only the POS vendor, which in our case is Springboard Retail?

Looking forward to your reply. Thank you again!

0 Likes 0 ·
michaelcramer avatar image
michaelcramer answered

Mark, thanks for your response! Appreciate your help on this issue.

Are the actions that you recommend we undertake to obtain the OrderId and with it the customer's email address available to us, the merchant, or only the POS vendor, which in our case is Springboard Retail?

Looking forward to your reply. Thank you again!

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community