You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My bad, it doesn't get filtered out, but actually triggers another error instead: cardExpiry may not be null which, apparently from the docs, isn't supposed to happen.
setOptionalFields will not let it pass if singleUseToken is specified because there's a check on optional fields (instead of actually being optional as the name suggests). setOptionalFields needs to be set on fields that are expected. If singleUseToken is specified, it won't work. I'm making a fork and pull request to be able to pull the dependency with composer since I need this right now.
davidwebca
added a commit
to davidwebca/paysafe_sdk_php
that referenced
this issue
Apr 2, 2021
updateCard fails because there's no way to pass singleUseToken as outlined in paysafegroup#33. Closespaysafegroup#33.
I had initially created a check inside updateCard for the singleUseToken, but I am now noticing the pattern already initialized with createCardFromSingleUseToken to have different functions and I applied it here too.
Function updateCard in CustomerVault filters out singleUseToken as it doesn't allow it even as a facultative param.
https://github.com/paysafegroup/paysafe_sdk_php/blob/master/source/Paysafe/CustomerVaultService.php#L408
This prevents updating cards with a single use token through the customer vault.
The text was updated successfully, but these errors were encountered: