Class ChasePaymentApplePayConfigurationProperties

java.lang.Object
com.broadleafcommerce.paymentgateway.properties.DiscriminatedProperties<ChasePaymentApplePayConfigurationProperties>
com.broadleafcommerce.vendor.chasepayment.service.wallet.autoconfigure.ChasePaymentApplePayConfigurationProperties

@ConfigurationProperties("broadleaf.chase-payment.apple-pay") public class ChasePaymentApplePayConfigurationProperties extends com.broadleafcommerce.paymentgateway.properties.DiscriminatedProperties<ChasePaymentApplePayConfigurationProperties>
  • Constructor Details

    • ChasePaymentApplePayConfigurationProperties

      public ChasePaymentApplePayConfigurationProperties()
  • Method Details

    • getApplePayMerchantIdentityCertificate

      public String getApplePayMerchantIdentityCertificate(@Nullable String applicationId, @Nullable String tenantId)
      Returns the Apple Pay merchant identity certificate. The default provider implementation for this certificate expects the certificate provided here as a base64-encoded string. This value can be saved and exposed securely, i.e. from Broadleaf Config Server. Alternatively, this default behavior can be overridden in DefaultChasePaymentApplePayMerchantIdentityCertificateAndKeyProvider to provide the key and cert files through a secret volume mount.
      Parameters:
      applicationId - the application id
      tenantId - the tenant id
      Returns:
      the path to the Apple Pay certificate
    • getApplePayMerchantIdentityPrivateKey

      public String getApplePayMerchantIdentityPrivateKey(@Nullable String applicationId, @Nullable String tenantId)
      Returns the Apple Pay merchant identity private key. The default provider implementation for this private key expects the key provided here as a base64-encoded string. This value can be saved and exposed securely, i.e. from Broadleaf Config Server. Alternatively, this default behavior can be overridden in DefaultChasePaymentApplePayMerchantIdentityCertificateAndKeyProvider to provide the key and cert files through a secret volume mount.
      Parameters:
      applicationId - the application id
      tenantId - the tenant id
      Returns:
      the path to the Apple Pay private key
    • getMerchantIdentifier

      public String getMerchantIdentifier(@Nullable String applicationId, @Nullable String tenantId)
      An identifier you register with Apple that uniquely identifies your business as a merchant able to accept payments
      Parameters:
      applicationId - the application id
      tenantId - the tenant id
      Returns:
      the merchant identifier
      See Also:
    • getDisplayName

      public String getDisplayName(@Nullable String applicationId, @Nullable String tenantId)
      A string of 64 or fewer UTF-8 characters containing the canonical name for your store, suitable for display. Don’t localize the name.
      Parameters:
      applicationId - the application id
      tenantId - the tenant id
      Returns:
      the name for your store
    • getInitiative

      public String getInitiative(@Nullable String applicationId, @Nullable String tenantId)
      A predefined value that identifies the e-commerce application making the request. Defaults to "web".
      Parameters:
      applicationId - the application id
      tenantId - the tenant id
      Returns:
      a predefined value that identifies the e-commerce application making the request
    • getInitiativeContext

      public String getInitiativeContext(@Nullable String applicationId, @Nullable String tenantId)
      The values for initiative and initiativeContext depend on the kind of application you’re building: For Apple Pay on the web, use “web” for the initiative parameter. For the initiativeContext parameter, provide your fully qualified domain name associated with your Apple Pay Merchant Identity Certificate. For example, "my-store-domain.com". For Apple Messages for Business, use “messaging” for the initiative parameter. For the initiativeContext parameter, pass your payment gateway URL. See Type Interactive for more information. Please note, if initiative and initiativeContext are incorrect the validation of the Merchant session can fail.
      Parameters:
      applicationId - the application id
      tenantId - the tenant id
      Returns:
      the initiative context
    • logUnresolvedPropertyError

      protected void logUnresolvedPropertyError(String propertyFriendlyName, String propertyPath, @Nullable String applicationId, @Nullable String tenantId)
    • setMerchantIdentityCertificate

      public void setMerchantIdentityCertificate(String merchantIdentityCertificate)
      The Apple Pay certificate, extracted from the .crt.pem file.
    • setMerchantIdentityPrivateKey

      public void setMerchantIdentityPrivateKey(String merchantIdentityPrivateKey)
      The Apple Pay private key, extracted from the .key.pem file.
    • setMerchantIdentifier

      public void setMerchantIdentifier(String merchantIdentifier)
      See Also:
    • setDisplayName

      public void setDisplayName(String displayName)
      See Also:
    • setInitiative

      public void setInitiative(String initiative)
      See Also:
    • setInitiativeContext

      public void setInitiativeContext(String initiativeContext)
      See Also:
    • setValidMerchantValidationDomains

      public void setValidMerchantValidationDomains(List<String> validMerchantValidationDomains)
      The list of valid domains for merchant validation in production and testing. This list of valid ApplePay domains are not application/tenant discriminated.
    • getValidMerchantValidationDomains

      public List<String> getValidMerchantValidationDomains()
      The list of valid domains for merchant validation in production and testing. This list of valid ApplePay domains are not application/tenant discriminated.