Skip to content

feat: add Pay Upon Invoice (BNPL) payment source helper - #679

Merged
bashgeek merged 1 commit into
mainfrom
feature/pay-later
Apr 18, 2026
Merged

feat: add Pay Upon Invoice (BNPL) payment source helper#679
bashgeek merged 1 commit into
mainfrom
feature/pay-later

Conversation

@bashgeek

Copy link
Copy Markdown
Collaborator

Summary

  • Adds setPaymentSourcePayUponInvoice(array $data): PayPal to the payment source helpers, following the same pattern as setPaymentSourceCard(), setPaymentSourceApplePay(), etc.
  • Sets payment_source.pay_upon_invoice — compatible with createOrderWithPaymentSource() and the existing experience_context merging logic.
  • Adds one unit test covering the happy path; all 695 existing tests continue to pass.
  • Documents the Pay Upon Invoice flow in README with a full server-side code example.

API reference

PayPal Pay Upon Invoice — available for DE/AT merchants only.

Test plan

  • ./vendor/bin/phpstan analyse src/ --memory-limit=512M — no errors
  • ./vendor/bin/pest — 695 passed, 0 failures

@bashgeek
bashgeek marked this pull request as ready for review April 18, 2026 05:15
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@bashgeek
bashgeek merged commit 522834a into main Apr 18, 2026
16 checks passed
@bashgeek
bashgeek deleted the feature/pay-later branch April 18, 2026 05:32
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.

2 participants