Changes proposed in this Pull Request
This PR creates a new composite checkout payment method in Calypso which takes the place of the “stripe” credit card payment method bundled with the composite-checkout
package. The difference is that this payment method includes an optional contact details form that appears if the user unchecks a checkbox that reads “Credit card address is the same as contact details”.
Notably, Brazil and India have a special contact form that is required for those countries, and they also replace the credit card fields themselves since, for those countries, the “Credit card” payment method should use Ebanx and dLocal, respectively, instead of Stripe.
Payment method processing for this new method will be changed in #44119
This is part of #43812
Screenshots
Testing instructions
Even though this replaces the credit card payment method entirely, the behavior should be the same for most users unless Ebanx is available (which should never happen currently since the CheckoutSystemDecider
blocks Brazillian country codes and I think that we only allow Ebanx if the country code is Brazil).
Therefore, the main testing is just to be sure that paying with a new credit card works the same way as it did previously.
Unfortunately, no screenshots were provided by the developer.