Class PayPalOAuth2ClientRegistrationUtils


  • public final class PayPalOAuth2ClientRegistrationUtils
    extends Object
    Author:
    Dima Myroniuk (dmyroniuk)
    • Method Detail

      • getClientRegistrationId

        public static String getClientRegistrationId​(@NonNull
                                                     @NonNull PayPalCheckoutApiProperties properties,
                                                     @Nullable
                                                     String applicationId,
                                                     @Nullable
                                                     String tenantId)
        Generates the client registration id for the specified application id and tenant id. The default implementation generates it using "DigestUtils" - "DigestUtils.md5Hex(clientId + clientSecret)".
        Parameters:
        properties - the checkout api properties
        applicationId - the application id
        tenantId - the tenant id
        Returns:
        the generated client registration id.