feat(payment): PAYPAL-6645 Tech PoC [FE]: Pay by Invoice checkout — frontend implementation approach - #3292
Draft
serhiiFilkovskyi wants to merge 1 commit into
Draft
feat(payment): PAYPAL-6645 Tech PoC [FE]: Pay by Invoice checkout — frontend implementation approach#3292serhiiFilkovskyi wants to merge 1 commit into
serhiiFilkovskyi wants to merge 1 commit into
Conversation
serhiiFilkovskyi
force-pushed
the
PAYPAL-6645
branch
from
June 16, 2026 12:59
844e887 to
882b0ab
Compare
serhiiFilkovskyi
commented
Aug 3, 2026
| // `bigcommerce_payments` with `method: 'invoice'`. The BigPay client's id mapper | ||
| // doesn't recognise this method, so it would otherwise fall through and send the | ||
| // raw method id as the gateway. Remap the id to the provider here. | ||
| if (paymentMethod.id === 'bigcommerce_payments_invoices') { |
Contributor
Author
There was a problem hiding this comment.
remove after bigcommerce/bigpay-client-js#473 will be merged
There was a problem hiding this comment.
Pull request overview
This PR introduces a Proof-of-Concept frontend integration path for a new “Pay by Invoice” method under BigCommerce Payments by adding a dedicated payment strategy and ensuring the core payment request maps the method to the provider gateway expected by BigPay.
Changes:
- Remap
bigcommerce_payments_invoicesto thebigcommerce_paymentsprovider gateway when building the payment request body. - Add a new
BigCommercePaymentsInvoicesPaymentStrategyand register/export it from the BigCommerce Payments integration package. - Introduce (and export) initialization options types for the new invoices strategy.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/core/src/payment/payment-request-transformer.ts | Adds a remap so the invoices method sends paymentMethod.id = bigcommerce_payments to align with BigPay expectations. |
| packages/core/src/payment/payment-request-transformer.spec.ts | Adds unit coverage for the new payment method id remap behavior. |
| packages/bigcommerce-payments-integration/src/index.ts | Exposes the new invoices strategy and its initialize options type via the package entry point. |
| packages/bigcommerce-payments-integration/src/bigcommerce-payments-invoices/create-bigcommerce-payments-invoices-payment-strategy.ts | Registers the invoices strategy as a resolvable module for bigcommerce_payments_invoices. |
| packages/bigcommerce-payments-integration/src/bigcommerce-payments-invoices/bigcommerce-payments-invoices-payment-strategy.ts | Implements a minimal invoices payment strategy (initialize + submit order/payment). |
| packages/bigcommerce-payments-integration/src/bigcommerce-payments-invoices/bigcommerce-payments-invoices-payment-initialize-options.ts | Adds initialization option types for the invoices strategy. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What/Why?
Jira: PAYPAL-6645
Rollout/Rollback
Pay by Invoice checkout — front-end implementation approach [POC]
Testing
bcp_pay_by_invoice_succsess.mp4