PHP code example of wp-pay-gateways / omnikassa-2
1. Go to this page and download the library: Download wp-pay-gateways/omnikassa-2 library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
wp-pay-gateways / omnikassa-2 example snippets
add_filter( 'pronamic_pay_omnikassa_2_request_args', function( $args ) {
$args['timeout'] = 3600;
return $args;
} );
add_filter( 'pronamic_pay_omnikassa_2_merchant_return_url', function( $url ) {
$url = 'https://example.com/';
return $url;
} );
curl --request POST https://betalen.rabobank.nl/omnikassa-api-sandbox/order/server/api/order \
--header "Authorization: Bearer __refresh_token__" \
--connect-timeout 5 \
--max-time 5 \
--user-agent "WordPress/4.9.8; https://example.com/" \
--verbose