Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove iDEAL issuers for iDEAL 2.0 migration #53

Open
rvdsteege opened this issue Jul 3, 2024 · 3 comments
Open

Remove iDEAL issuers for iDEAL 2.0 migration #53

rvdsteege opened this issue Jul 3, 2024 · 3 comments

Comments

@rvdsteege
Copy link
Member

To migrate to iDEAL 2.0, Mollie advises merchants (by email and on https://help.mollie.com/hc/en-gb/articles/19100313768338-iDEAL-2-0) to remove the issuers:

  1. Check whether there is a bank selection dropdown (also referred to as issuer selection) on your checkout page.
  2. If no dropdown appears, no further action is required.
  3. If there is a bank selection dropdown, remove it and instead only display the iDEAL logo and payment method name to the consumer. Additionally, stop sending in the Issuer ID in your ‘Create payment’ request.
  4. Once you stop sending in the Issuer ID, the response to the API call will include the link to the new iDEAL hosted page, where the consumer will select their issuing bank for the iDEAL payment.

NOTE: in case you are using the Methods API to dynamically receive the list of issuers for iDEAL, you can remove this step from your integration.

In e.g. https://secure.helpscout.net/conversation/2642194046/27452 a customer enquired about how to remove the issuers with our WooCommerce integration, but merchant have no control over this at the moment. Currently, we're always adding issuers to the iDEAL payment method:

// Fields.
$ideal_options = new CachedCallbackOptions(
function () {
return $this->get_ideal_issuers();
},
'pronamic_pay_ideal_issuers_' . \md5( (string) \wp_json_encode( $config ) )
);

$field_ideal_issuer = new IDealIssuerSelectField( 'pronamic_pay_mollie_ideal_issuer' );
$field_ideal_issuer->set_options( $ideal_options );
$payment_method_ideal->add_field( $field_ideal_issuer );

/**
* Get iDEAL issuers.
*
* @return iterable<SelectFieldOption|SelectFieldOptionGroup>
*/
private function get_ideal_issuers() {
$issuers = $this->client->get_issuers();
$items = [];
foreach ( $issuers as $key => $value ) {
$items[] = new SelectFieldOption( $key, $value );
}
return $items;
}

@remcotolsma
Copy link
Member

As far as I know, technically the 'old' iDEAL from Mollie with issuer ID can also run on the new iDEAL 2.0 platform. From the iDEAL 2.0 integrations of Rabobank and ING, we know that the new iDEAL 2.0 platform also supports an issuer ID for a smooth transition. For many, however, iDEAL 2.0 will also mean using the new iDEAL hosted page. This should ideally also be the standard, but this cannot yet be set within Pronamic Pay. Should we (temporarily) introduce an additional setting for this in the WooCommerce iDEAL gateway?

☑️ Show iDEAL bank list
With the developments of iDEAL 2.0, the bank list will eventually disappear, but for now this functionality is still available for a smooth transition.

However, for new Pronamic Pay installations this setting should be off by default, and for existing installations it may be on by default. This so that users can consciously choose to use the iDEAL 2.0 hosted payment page. If we had kept an installation date, we could have easily done something with this? But without this information it is difficult to implement this way?

Should we add something like this in the installation routine:

$installation_date = (string) \get_option( 'pronamic_pay_installation_date', '' );

if ( '' === $installation_date ) {
	\update_option( 'pronamic_pay_installation_date', \current_time( 'mysql', true ) );
}

Originally posted by @remcotolsma in pronamic/wp-pay-core#186 (comment)

I did notice some support topics on https://wordpress.org/support/plugin/mollie-payments-for-woocommerce/ as a result of automatically removing the bank list option field.

@rvdsteege
Copy link
Member Author

We can start adding the installation date for new installations and use it for this setting?

@remcotolsma
Copy link
Member

I also just realized that we have a WooCommerce gateway configuration post publication date available that we can use. If the show_ideal_issuer_selection_field option is null and gateway configuration publication date is if before 2024-07-01 enable the option by default, otherwise disabled by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

2 participants