Giter VIP home page Giter VIP logo

pronamic / pronamic-pay-worldline-open-banking-ideal-2 Goto Github PK

View Code? Open in Web Editor NEW
1.0 4.0 0.0 15.04 MB

This plugin contains the Pronamic Pay integration for the Worldline Open Banking Platform and iDEAL 2.0.

Home Page: https://www.pronamicpay.com

License: GNU General Public License v2.0

PHP 100.00%
ideal ideal-2 open-banking paymen payment-gateway payment-integration payments pronamic pronamic-pay rabobank

pronamic-pay-worldline-open-banking-ideal-2's Introduction

pronamic-pay-worldline-open-banking-ideal-2's People

Contributors

remcotolsma avatar rvdsteege avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

pronamic-pay-worldline-open-banking-ideal-2's Issues

Rename "Merchant ID" to "Initiating Party ID"?

Should we rename "Merchant ID" to "Initiating Party ID"?

// Merchant ID.
$merchant_field = [
'section' => 'general',
'title' => __( 'Merchant ID', 'pronamic-pay-worldline-open-banking-ideal-2' ),
'meta_key' => '_pronamic_gateway_ideal_merchant_id',
'type' => 'text',
'classes' => [ 'code' ],
'tooltip' => sprintf(
'%s %s.',
__( 'Merchant ID (or Acceptant ID)', 'pronamic-pay-worldline-open-banking-ideal-2' ),
__( 'as mentioned in the payment provider dashboard', 'pronamic-pay-worldline-open-banking-ideal-2' )
),
];
if ( null !== $this->merchant_options ) {
$merchant_field['type'] = 'select';
$merchant_field['options'] = $this->merchant_options;
}
$fields[] = $merchant_field;

Header Value Description
App IDEAL App value is always IDEAL for iDEAL transactions.
Client RaboiDEAL Client value is always RaboiDEAL for Merchants with Rabobank
Id Initiating Party ID* This is the identifier used by the Open Banking Service to identify the Merchant.
In the test environment, only the test Merchants should be used.

* The Initiating Party ID for a Merchant can be found in the Rabo iDEAL Dashboard via the Merchant Page or
the Subscription Page. This is also known as "Dashboard ID" for Rabobank Merchants. Please note this is to
be taken from the Rabo iDEAL Dashboard l for transactions in Production.

Source: iDEAL_2.0_Getting_Started_Guide_-_version_1.4 - Rabobank.pdf

CC @rvdsteege

Fatal error `Uncaught Error: Call to undefined function submit_button()`

The configuration settings fields do not change when switching payment provider. This is caused by the following error:

Fatal error: Uncaught Error: Call to undefined function submit_button() in /wp-content/plugins/pronamic-pay-worldline-open-banking-ideal-2/src/Integration.php on line 432

/**
* Field private key.
*
* @param array<string, mixed> $field Field.
* @return void
*/
public function field_private_key( $field ) {
$post_id = (int) \get_the_ID();
$private_key = $this->get_meta( $post_id, 'ideal_private_key' );
$private_key_password = $this->get_meta( $post_id, 'ideal_private_key_password' );
$number_days_valid = $this->get_meta( $post_id, 'number_days_valid' );
if ( PronamicGateway::MODE_TEST === $this->get_mode() ) {
$private_key = \file_get_contents( __DIR__ . '/../certificates/TestCertificatesiDEAL.2.0.key' );
}
if ( PronamicGateway::MODE_TEST !== $this->get_mode() ) {
if ( ! empty( $private_key_password ) && ! empty( $number_days_valid ) ) {
if ( \function_exists( '\escapeshellarg' ) ) {
$filename = __( 'ideal.key', 'pronamic-pay-worldline-open-banking-ideal-2' );
$command = sprintf(
'openssl genrsa -aes128 -out %s -passout pass:%s 2048',
\escapeshellarg( $filename ),
\escapeshellarg( $private_key_password )
);
?>
<p><?php esc_html_e( 'OpenSSL command', 'pronamic-pay-worldline-open-banking-ideal-2' ); ?></p>
<input id="pronamic_ideal_openssl_command_key" name="pronamic_ideal_openssl_command_key" value="<?php echo esc_attr( $command ); ?>" type="text" class="large-text code" readonly="readonly"/>
<?php
}
} else {
printf(
'<p class="pronamic-pay-description description">%s</p>',
esc_html__( 'Leave empty and save the configuration to generate the secret key or view the OpenSSL command.', 'pronamic-pay-worldline-open-banking-ideal-2' )
);
}
}
?>
<p>
<?php
if ( ! empty( $private_key ) ) {
\wp_nonce_field( 'pronamic_pay_download_secret_key', 'pronamic_pay_download_secret_key_nonce' );
\submit_button(
__( 'Download', 'pronamic-pay-worldline-open-banking-ideal-2' ),
'secondary',
'download_secret_key',
false
);
echo ' ';
}
if ( PronamicGateway::MODE_TEST !== $this->get_mode() ) {
printf(
'<label class="pronamic-pay-form-control-file-button button">%s <input type="file" name="%s" /></label>',
esc_html__( 'Upload', 'pronamic-pay-worldline-open-banking-ideal-2' ),
'_pronamic_gateway_ideal_private_key_file'
);
}
?>
</p>
<?php
}

CC @remcotolsma

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.