AlipayProperties
7/8/26Less than 1 minute
AlipayProperties
Info
Alipay payment configuration properties bound from payment.alipay.*.
Overview
AlipayProperties is a Spring @ConfigurationProperties component that holds all Alipay-specific settings including gateway URL, app credentials, key paths, and callback URLs. It provides an isConfigured() check to verify that all required fields are populated before attempting API calls.
Configuration Properties
| Property | Type | Default | Description |
|---|---|---|---|
payment.alipay.enabled | boolean | false | Whether Alipay payment is enabled |
payment.alipay.gateway-url | String | https://openapi.alipay.com/gateway.do | Alipay gateway endpoint |
payment.alipay.app-id | String | - | Alipay application ID |
payment.alipay.private-key-path | String | - | Path to merchant private key file |
payment.alipay.public-key-path | String | - | Path to Alipay public key file |
payment.alipay.notify-url | String | - | Async notification callback URL |
payment.alipay.return-url | String | - | Synchronous return URL after payment |
payment.alipay.sign-type | String | RSA2 | Signature algorithm |
payment.alipay.charset | String | UTF-8 | Character encoding |
payment.alipay.query-pending-batch-size | int | 100 | Batch size for pending order reconciliation |
Validation
isConfigured() returns true only when all of the following are non-blank:
enabledistrueappIdprivateKeyPathpublicKeyPathnotifyUrl
Tips
The queryPendingBatchSize controls how many pending orders are reconciled per scheduled job cycle.
Changelog
7/8/26, 5:52 AM
View All Changelog
9f290-on

