Skip to content

feat(order-endpoint): Add BN code to confirm_payment_source requests (6099)#4247

Open
Narek13 wants to merge 2 commits intotrunkfrom
dev/PCP-6099-add-bn-code-to-confirm-payment-source-requests
Open

feat(order-endpoint): Add BN code to confirm_payment_source requests (6099)#4247
Narek13 wants to merge 2 commits intotrunkfrom
dev/PCP-6099-add-bn-code-to-confirm-payment-source-requests

Conversation

@Narek13
Copy link
Copy Markdown
Collaborator

@Narek13 Narek13 commented Apr 1, 2026

Issue Description

confirm_payment_source was the only method in OrderEndpoint not explicitly setting the PayPal-Partner-Attribution-Id header, causing gaps in PayPal partnership reporting and revenue attribution.

PR Description

Adds the BN code header to confirm_payment_source requests in OrderEndpoint, aligning it with the established pattern used in all other API methods (create, capture, authorize, order, patch).

if ( $this->bn_code ) {
    $args['headers']['PayPal-Partner-Attribution-Id'] = $this->bn_code;
}

Acceptance criteria covered

  • All confirm_payment_source requests include the PayPal-Partner-Attribution-Id header
  • No regression in existing payment method behaviour (Multibanco, OXXO, etc.)

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 1, 2026

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 v4.0.2-pr4247-23852576447-gabaa587 (built from this PR)

Login credentials:

  • Username: admin
  • Password: password

Plugin Details:

  • Version: 4.0.2-pr4247-23852576447-gabaa587
  • Commit: fd8d2cf
  • Artifact: woocommerce-paypal-payments-4.0.2-pr4247-23852576447-gabaa587

💡 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 fd8d2cf • Last updated: 2026-04-01T14:07:40.408Z

Base automatically changed from dev/release/4.0.2 to trunk April 7, 2026 09:00
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.

1 participant