wp-pay-gateways / adyen
WordPress支付处理库的Adyen驱动程序。
v4.5.1
2024-03-26 10:36 UTC
Requires
- php: >=7.4
- ext-intl: *
- automattic/jetpack-autoloader: ^3.0
- justinrainbow/json-schema: ^5.2
- pronamic/wp-http: ^1.2
- pronamic/wp-money: ^2.2
- wp-pay/core: ^4.8
Requires (Dev)
- bamarni/composer-bin-plugin: ^1.4
- overtrue/phplint: ^4.5
- php-coveralls/php-coveralls: ^2.5
- phpmd/phpmd: ^2.13
- pronamic/pronamic-cli: ^1.1
- pronamic/wp-coding-standards: ^2.1
- roots/wordpress: ^6.0
- sirbrillig/phpcs-import-detection: ^1.2
- sirbrillig/phpcs-variable-analysis: ^2.8
- wp-phpunit/wp-phpunit: ^6.1
- yoast/phpunit-polyfills: ^1.0
This package is auto-updated.
Last update: 2024-08-30 01:23:12 UTC
README
WordPress支付处理库的Adyen驱动程序。
Adyen通知(webhooks)
Pronamic Pay Adyen网关可以通过WordPress REST API处理Adyen通知。
路由: /wp-json/pronamic-pay/adyen/v1/notifications
可以使用cURL等工具测试WordPress REST API Adyen通知端点。
curl --request POST --user username:password http://pay.test/wp-json/pronamic-pay/adyen/v1/notifications
WordPress过滤器
pronamic_pay_adyen_checkout_head
add_action( 'pronamic_pay_adyen_checkout_head', 'custom_adyen_checkout_head', 15 ); function custom_adyen_checkout_head() { wp_register_style( 'custom-adyen-checkout-style', get_stylesheet_directory_uri() . '/css/adyen-checkout.css', array(), '1.0.0' ); wp_print_styles( 'custom-adyen-checkout-style' ); }
pronamic_pay_adyen_config_object
add_filter( 'pronamic_pay_adyen_config_object', 'custom_adyen_config_object', 15 ); function custom_adyen_config_object( $config_object ) { $style_object = (object) array( 'base' => (object) array( 'color' => '#000', 'fontSize' => '14px', 'lineHeight' => '14px', 'fontSmoothing' => 'antialiased', ), 'error' => (object) array( 'color' => 'red', ), 'placeholder' => (object) array( 'color' => '#d8d8d8', ), 'validated' => (object) array( 'color' => 'green', ), ); $config_object->paymentMethods = (object) array( 'card' => (object) array( 'sfStyles' => $style_object, ), ); return $config_object; }
生产环境
仪表板URL: https://ca-live.adyen.com/
API URL: https://{LIVE_API_URL_PREFIX}-checkout-live.adyenpayments.com/checkout/v41/
测试环境
仪表板URL: https://ca-test.adyen.com/
API URL: https://checkout-test.adyen.com/v41/
常见问题解答
为什么我收到“无法实例化支付屏幕”的通知?
Adyen于2019年8月12日表示
当Adyen在我们的SDK中没有任何可显示的支付方式时,会出现“无法实例化支付屏幕”。
Bancontact仅限于比利时,我看到你在
/paymentSession
请求中设置了"countryCode" : "NL"
。你能将其设置为BE
吗?然后你应该能看到BCMC。