Disable user data in Checkout SDK

I encountered a discrepancy between the sandbox and production mode using the Checkout SDK.

In sandbox mode, I am passing user data (email and name) as a component prop and hiding the fact that this data (customerInformation) is requested from the user when completing the payment. This works correctly and the payment is processed perfectly.


In production mode, this setup does not work. The form submission does not work at all; it clearly does not validate this setup.

When I change this configuration to customerInformation: true, and display the fields for the user to enter their email and name, the form validates and the submit works.


The problem with this (unless I am missing some information, which I would appreciate if you could provide) is the identification of the user in the webhook in order to assign that subscription status in my DB.

If the user is able to change their email address at the time of payment, I would be left with an orphaned subscription and would have to manually identify which email address that user belongs to in my DB.

Please authenticate to join the conversation.

Upvoters
Status

Completed

Board

💡 Feature request

Date

2 months ago

Author

Mauro Barrionuevo

Subscribe to post

Get notified by email when there are changes.