Skip to content

Conversation

Dinamiko
Copy link
Collaborator

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

@Dinamiko Dinamiko changed the base branch from trunk to develop September 1, 2025 12:13
Copy link

github-actions bot commented Sep 1, 2025

Test using WordPress Playground

The changes in this pull request can be previewed and tested using a WordPress Playground instance.
WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser.

🔗 Test this pull request with WordPress Playground

What's included:

  • ✅ WordPress (latest)
  • ✅ WooCommerce (latest)
  • ✅ PayPal Payments plugin v3.0.9-pr2855-17377414652-g7a6b72c (built from this PR)

Login credentials:

  • Username: admin
  • Password: password

Plugin Details:

  • Version: 3.0.9-pr2855-17377414652-g7a6b72c
  • Commit: 7a6b72c
  • Artifact: woocommerce-paypal-payments-3.0.9-pr2855-17377414652-g7a6b72c

💡 The demo environment resets each time you refresh. Perfect for testing!

🔄 This link updates automatically with each new commit to the PR.

⚠️ This URL is valid for 30 days from when this comment was last updated.


🤖 Auto-generated for commit 7a6b72c • Last updated: 2025-09-01T12:28:09.981Z

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