How vasylenkomykola/paypal-php-encrypt works
This is a small PHP library for creating PayPal Encrypted Website Payments payloads. A caller supplies button parameters to encrypt(), which serializes them, signs them with merchant credentials, applies the OpenSSL binary workaround, encrypts the result with PayPal’s certificate, and returns PKCS7-armored data for a PayPal button. The implementation is concentrated in one class; the certificate files described by the README are not present in the tree. Internal stages are separated here for clarity, not because they are separate modules.
Main entry points: PayPalEncrypt.class.php Encrypt API
Components 10
Other components
- Merchant application
- Encrypt API
PayPalEncrypt.class.php - Parameter serialization
PayPalEncrypt.class.php - PKCS7 signing
PayPalEncrypt.class.php - Binary workaround
PayPalEncrypt.class.php - PayPal encryption
PayPalEncrypt.class.php - PKCS7 armor
PayPalEncrypt.class.php - PEM certificates
- Button payload
- PayPal Payments
Connections 9
- Merchant application → Encrypt API: calls
README.md - Encrypt API → Parameter serialization: serializes
PayPalEncrypt.class.php - Encrypt API → PKCS7 signing: signs
PayPalEncrypt.class.php - Encrypt API → Binary workaround: decodes conditionally
PayPalEncrypt.class.php - Encrypt API → PayPal encryption: encrypts
PayPalEncrypt.class.php - Encrypt API → PKCS7 armor: formats result
PayPalEncrypt.class.php - Encrypt API → PEM certificates: reads
PayPalEncrypt.class.php - Encrypt API → Button payload: returns payload
README.md - Button payload → PayPal Payments: posts to
README.md