Class CheckoutComApplePayConfigurationProperties
java.lang.Object
com.broadleafcommerce.paymentgateway.properties.DiscriminatedProperties<CheckoutComApplePayConfigurationProperties>
com.broadleafcommerce.vendor.checkoutcom.autoconfigure.CheckoutComApplePayConfigurationProperties
@ConfigurationProperties("broadleaf.checkout-com.apple-pay")
public class CheckoutComApplePayConfigurationProperties
extends com.broadleafcommerce.paymentgateway.properties.DiscriminatedProperties<CheckoutComApplePayConfigurationProperties>
Properties used to configure the Apple Pay integration
- Author:
- Dima Myroniuk (dmyroniuk)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetApplePayCertificate(String applicationId, String tenantId) Deprecated, for removal: This API element is subject to removal in a future version.getApplePayCertificateString(String applicationId, String tenantId) Returns the Apple Pay merchant identity certificate.getApplePayPrivateKey(String applicationId, String tenantId) Deprecated, for removal: This API element is subject to removal in a future version.it is advised to useStringBase64CheckoutComApplePayCertificateAndKeyProviderand it will usegetApplePayPrivateKeyString(String, String)getApplePayPrivateKeyString(String applicationId, String tenantId) Returns the Apple Pay merchant identity private key.getDisplayName(String applicationId, String tenantId) A string of 64 or fewer UTF-8 characters containing the canonical name for your store, suitable for display.getInitiative(String applicationId, String tenantId) A predefined value that identifies the e-commerce application making the request.getInitiativeContext(String applicationId, 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.getMerchantIdentifier(String applicationId, String tenantId) An identifier you register with Apple that uniquely identifies your business as a merchant able to accept paymentsThe list of valid domains for merchant validation in production and testing.voidsetCertificate(String certificate) Deprecated.it is advised to useStringBase64CheckoutComApplePayCertificateAndKeyProviderand it will consumecertificateStringvoidsetCertificateString(String certificateString) voidsetDisplayName(String displayName) voidsetInitiative(String initiative) voidsetInitiativeContext(String initiativeContext) voidsetMerchantIdentifier(String merchantIdentifier) voidsetPrivateKey(String privateKey) Deprecated.it is advised to useStringBase64CheckoutComApplePayCertificateAndKeyProviderand it will consumeprivateKeyStringvoidsetPrivateKeyString(String privateKeyString) voidsetValidMerchantValidationDomains(List<String> validMerchantValidationDomains) The list of valid domains for merchant validation in production and testing.Methods inherited from class com.broadleafcommerce.paymentgateway.properties.DiscriminatedProperties
getApplication, getField, getTenant, setApplication, setTenant
-
Constructor Details
-
CheckoutComApplePayConfigurationProperties
public CheckoutComApplePayConfigurationProperties()
-
-
Method Details
-
getApplePayCertificate
@Deprecated(since="2.0.4", forRemoval=true) public String getApplePayCertificate(@Nullable String applicationId, @Nullable String tenantId) Deprecated, for removal: This API element is subject to removal in a future version.it is advised to useStringBase64CheckoutComApplePayCertificateAndKeyProviderand it will usegetApplePayCertificateString(String, String)Returns the path to the Apple Pay certificate, for example "applepay/certificate_sandbox.pem".- Parameters:
applicationId- the application idtenantId- the tenant id- Returns:
- the path to the Apple Pay certificate
-
getApplePayPrivateKey
@Deprecated(since="2.0.4", forRemoval=true) public String getApplePayPrivateKey(@Nullable String applicationId, @Nullable String tenantId) Deprecated, for removal: This API element is subject to removal in a future version.it is advised to useStringBase64CheckoutComApplePayCertificateAndKeyProviderand it will usegetApplePayPrivateKeyString(String, String)Returns the path to the Apple Pay private key, for example "applepay/private_key_sandbox.pem".- Parameters:
applicationId- the application idtenantId- the tenant id- Returns:
- the path to the Apple Pay private key
-
getApplePayCertificateString
public String getApplePayCertificateString(@Nullable String applicationId, @Nullable String tenantId) Returns the Apple Pay merchant identity certificate. The default provider implementation for this certificate expects the full PEM certificate file content provided here as a string, but without the 'BEGIN' and 'END' lines and without linebreaks. This value can be saved and exposed securely, i.e. from Broadleaf Config Server. Alternatively, it can be a base64 encoded DER file content- Parameters:
applicationId- the application idtenantId- the tenant id- Returns:
- the path to the Apple Pay certificate
- Since:
- 2.0.4
-
getApplePayPrivateKeyString
public String getApplePayPrivateKeyString(@Nullable String applicationId, @Nullable String tenantId) Returns the Apple Pay merchant identity private key. The default provider implementation for this private key expects the full PEM private key file content provided here as a string, but without the 'BEGIN' and 'END' and without linebreaks. This value can be saved and exposed securely, i.e. from Broadleaf Config Server. Alternatively, it can be a base64 encoded DER file content- Parameters:
applicationId- the application idtenantId- the tenant id- Returns:
- the path to the Apple Pay private key
- Since:
- 2.0.4
-
getMerchantIdentifier
An identifier you register with Apple that uniquely identifies your business as a merchant able to accept payments- Parameters:
applicationId- the application idtenantId- the tenant id- Returns:
- the merchant identifier
- See Also:
-
getDisplayName
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 idtenantId- the tenant id- Returns:
- the name for your store
-
getInitiative
A predefined value that identifies the e-commerce application making the request. Defaults to "web".- Parameters:
applicationId- the application idtenantId- the tenant id- Returns:
- a predefined value that identifies the e-commerce application making the request
-
getInitiativeContext
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 idtenantId- the tenant id- Returns:
- the initiative context
-
setCertificate
Deprecated.it is advised to useStringBase64CheckoutComApplePayCertificateAndKeyProviderand it will consumecertificateString -
setPrivateKey
Deprecated.it is advised to useStringBase64CheckoutComApplePayCertificateAndKeyProviderand it will consumeprivateKeyString -
setCertificateString
- Since:
- 2.0.4
- See Also:
-
setPrivateKeyString
- Since:
- 2.0.4
- See Also:
-
setMerchantIdentifier
-
setDisplayName
-
setInitiative
-
setInitiativeContext
-
setValidMerchantValidationDomains
The list of valid domains for merchant validation in production and testing. -
getValidMerchantValidationDomains
The list of valid domains for merchant validation in production and testing.
-
StringBase64CheckoutComApplePayCertificateAndKeyProviderand it will usegetApplePayCertificateString(String, String)