bigcommerce / checkout-js

Optimized One-Page Checkout
MIT License
114 stars 353 forks source link

fix(payment): PAYPAL-4208 added extra mapping for paypalcommercecreditcards methodId #1871

Closed serhii-tkachenko closed 3 months ago

serhii-tkachenko commented 3 months ago

What?

Added extra mapping for paypalcommercecreditcards methodId to convert it to paypalcommerceacceleratedcheckout

Why?

During PPCP Fastlane Shipping Component testing we faced with the issue, that component does not render for cases when the page was loaded for unrecognised user. In this case BE sets paypalcommercecreditcards as providerWithCustomCheckout what does not have a right mapping to match the condition for component rendering.

So the solution is to add right methodId mapping to be able to render shipping component.

Testing / Proof

Unit tests CI