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

New SEPA Direct Debit integration (3698) #2855

Draft
wants to merge 8 commits into
base: trunk
Choose a base branch
from

Conversation

Dinamiko
Copy link
Contributor

Implement SEPA direct debit.

SEPA direct debit features

  • Supported transaction types: One-off or Recurring Payments.
  • Settlement: Instant or Delayed.
  • Vaulting: Supported
  • Transaction Currency: EUR only
  • Refunds: Full, Partial and Multiple Partial refunds supported.
  • Integration Type: PayPal Orders v2 API and Braintree SDKs.

SEPA Direct Debit allows you to access funds immediately if you opt for Instant Settlements. Delayed settlement option will make funds available in the standard SEPA settlement timeframe of 2-3 days.

*
* @var Orders
*/
private $orders_endpoint;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest to always add typehints since we are already on PHP 7.4 +

Suggested change
private $orders_endpoint;
private Orders $orders_endpoint;

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with this suggestion; when possible, we should use the type hints.

Just want to point out that this is only possible for custom properties, and we cannot add a type hint for properties that are defined without a type in the base class


use ProcessPaymentTrait;

const ID = 'ppcp-sepa';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const ID = 'ppcp-sepa';
public const ID = 'ppcp-sepa';

*
* @var string
*/
private $module_url;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here, missing typehints for the class

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

Successfully merging this pull request may close these issues.

3 participants