Merge pull request #6872 from jmacxx/add_mercadopago_payment_method

Correct mismatched resource ID (MercadoPago).
This commit is contained in:
Alejandro García 2023-09-15 11:27:47 +00:00 committed by GitHub
commit 1b26cffe7d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,7 +56,7 @@ public class MercadoPagoForm extends PaymentMethodForm {
mercadoPagoAccountPayload.getAccountHolderName());
addCompactTopLabelTextField(gridPane, gridRow, 1, Res.get("shared.country"),
CountryUtil.getNameAndCode(mercadoPagoAccountPayload.getCountryCode()));
addCompactTopLabelTextField(gridPane, ++gridRow, Res.get("payment.mercado_pago.holderId"),
addCompactTopLabelTextField(gridPane, ++gridRow, Res.get("payment.mercadoPago.holderId"),
mercadoPagoAccountPayload.getAccountHolderId());
addCompactTopLabelTextField(gridPane, gridRow, 1, Res.get("payment.mercadoPago.site"),
MercadoPagoAccount.countryToMercadoPagoSite(mercadoPagoAccountPayload.getCountryCode()));
@ -85,7 +85,7 @@ public class MercadoPagoForm extends PaymentMethodForm {
updateFromInputs();
});
InputTextField mobileNrInputTextField = FormBuilder.addInputTextField(gridPane, ++gridRow, Res.get("payment.mercado_pago.holderId"));
InputTextField mobileNrInputTextField = FormBuilder.addInputTextField(gridPane, ++gridRow, Res.get("payment.mercadoPago.holderId"));
mobileNrInputTextField.textProperty().addListener((ov, oldValue, newValue) -> {
mercadoPagoAccount.setAccountHolderId(newValue);
updateFromInputs();
@ -134,7 +134,7 @@ public class MercadoPagoForm extends PaymentMethodForm {
Res.get(mercadoPagoAccount.getPaymentMethod().getId()));
addCompactTopLabelTextField(gridPane, ++gridRow, Res.get("payment.account.owner"),
mercadoPagoAccount.getAccountHolderName());
addCompactTopLabelTextField(gridPane, ++gridRow, Res.get("payment.mercado_pago.holderId"),
addCompactTopLabelTextField(gridPane, ++gridRow, Res.get("payment.mercadoPago.holderId"),
mercadoPagoAccount.getAccountHolderId());
addCompactTopLabelTextField(gridPane, ++gridRow, Res.get("payment.country"),
mercadoPagoAccount.getCountry() != null ? mercadoPagoAccount.getCountry().name : "");