I'm utilizing custom controls for credit card details on my public donation portal and aiming to utilize payment APIs to store card details. Can someone assist in understanding how to retain/store the refresh token for passing it to the payment APIs? Alternatively, are there other methods to access the payment APIs?
Additionally, please provide any source code references.